shawnho - 2013-06-02

I use json-to-xml to parse a json data but failed. The error message is "A JSONObject text must begin with '{' at character 1". However, I checked my data and it starts with a square bracket, "[" instead of a curly bracket. However, it seems json string can either be an array or an object according to http://stackoverflow.com/questions/5034444/can-a-json-start-with.
I hope to learn if there is anything I can do to parse json data starting with a square bracket.
--
JSON is built on two structures:

A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
An ordered list of values. In most languages, this is realized as an
array, vector, list, or sequence.