JSON uses square brackets [ ... ]
for an array, see http://json.org.
The description
method of NSArray
uses parentheses ( ... )
to print an array.
That format is described in Old-Style ASCII Property Lists.
You cannot expect the output to be equal. As another example, strings in JSON are always enclosed in quotation marks: "m"
, and the "Old-Style ASCII Property Lists" format
omits the quotation marks for purely alphanumeric strings without spaces.