My data source is a nested JSON object.
In each object, there is a JSON array with persons involved. It can contain one to several items. Each person item also have a JSON array with information about previous articles, if any:
What I would want is to loop through the first array and output the “age” and “sex” (male/female) in a phrase Then, for each person, I would like to loop through the object array and create phrases for those too.
The male 21 year old was now sentenced to prison for six years for narcotics crime. This is not his first brush with the law. He is previously convicted in 2015 for assault and theft, and in 2016 for driving under the influence of alcohol. He was convicted to six years in prison.
In other situations I have set up triggers to count the items in a list, and then define different branches in Write. But in those scenarios I worked with strings, not objects, and I cannot reference objects in Write (like “variable.key” or “variable[key]”).
Is there any guide available? I would love to learn more about working with nested JSON objects and arrays.