After receiving a string st
from a web service, I convert it into an object. How can I determine the number of arrays inside this object? In this particular case, there are 2 arrays.
var st = "{[{"Name": "fake", "Address": "add"]},[{"Name": "fake", "Address": "add"}]}";
var json = eval(st);
The statement json.length
consistently shows a value of 1.