So as an example you can take json coming in and turn it into a typed object like this, now understand that you can also do Collections, so if you have abunch of these you could make it a collection, versus just a Variable that has "a child table".
Set(AnimalData,
ParseJSON( singleAnimalString,
Table( AnimalType: Text, Weight: Number, BeenVacinated: Boolean })
)
)
Now you would access the data (whether its 1 record or 20 by using simple dot notation or you can also access rows by using Index, First, FirstN, Last, LastN or a look
AnimalData.Animaltype
AnimalData.Weight
AnimalData.BeenVacinated
If you wanted to have multiple rows you would have something like this to input it
[
{ "AnimalType: "Pig", "Weight": 45, "BeenVacinated": true },
{ "AnimalType: "Dog", "Weight": 20, "BeenVacinated": true },
{ "AnimalType: "Cat", "Weight": 10, "BeenVacinated": false }
]
And you would convert this to a string (heck it could be a collection already that you are just playing with)
Set(AnimalData,
ParseJSON( multipleAnimalString,
Table( AnimalType: Text, Weight: Number, BeenVacinated: Boolean }
)
)
I hope that helps
If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.
Thank you!
Sincerely, Michael Gernaey