An object in JSON format is always enclosed with curly braces "{ }"; and an array or a list of things/objects is always enclosed with square brackets. Strings are double quoted. Number is simply a number. Boolean is only 'true' or 'false'. Nil is 'null'.
And how to parse JSON formatted strings in Javascript can be learned from here:
No comments:
Post a Comment