Closed RaviRamDhali closed 7 years ago
Hi. Square brackets denotes an array in JSON. When you parse an array, the parse method returns a jsonArray object and the jsonObject will contain a "data" property with the jsonArray object.
Take a look at the array examples in the README file.
Make sense to me - thanks
Ricardo - I am getting an error when parsing JSON string using outer brackets. Is this a bug, or is this a 'feature'? I can trim the brackets, but I just wanted to let you know.
jsonString = [{"date":"4/28/2017","custType":"100","vehicle":"1"}]
BROKEN vsjsonString = {"date":"4/28/2017","custType":"100","vehicle":"1"}
WORKING