How to find the length of the json object?

hai all,
can anyone help me with finding the length of my json object from my server response,by sharing the logical blocks

here's my json object
{"Data":[{"userID":"101","switchID":"abc123","switchStatus":"0"},{"userID":"101","switchID":"efg456","switchStatus":"0"}]}

i should get the length value to be 2 for this json object

thank you

cool , thank u
but i am not able to get the length if i assign my server response to a variable.
i am getting zero (0) as the length
length

can u help me to get the length after assigning my server response to a variable?
Thank you

cool, i got the desired output
Thank you

I expect sooner or later you will want to get the data in that list.
Here's how, the JSON/dictionaries way ...

Bah, beat me to it

cool,thank you

thank you , i may need this later

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.