Hi. How do I determine the number of elements in an array? I have a JSON and want to add fields which say the number of elements in the JSON.
{
"ele1": [...],
"ele2": [...]
}
Based on this I would like to pretty much count the elements in ele1
and ele2
and set fields.
set_field("ele1", ele1Length);
set_field("ele2", ele2Length);
How can I determine the lengths?
Thanks for your help!