JSON text can either be an object or array for the "top-level" object, but JSON.prettyPrint() only works for objects. See http://www.ietf.org/rfc/rfc4627.txt.
What steps will reproduce the problem?
Try to pretty-print something like '[ "one": "value", "bool": true ]'
Get an error
What is the expected output? What do you see instead?
Expected pretty printing to work, but it didn't.
What version of the product are you using? On what operating system?
Latest binary build.
From Robert.E...@gmail.com on February 23, 2013 17:19:32
JSON text can either be an object or array for the "top-level" object, but JSON.prettyPrint() only works for objects. See http://www.ietf.org/rfc/rfc4627.txt. What steps will reproduce the problem?
Original issue: http://code.google.com/p/jsonbeans/issues/detail?id=2