Have similar need, I store some JSON data in files, and in order to be able 
to inspect it the JSON generated with pretty print option. The problem 
though - it's too bloated, util.inspect has much nicer format.

    var obj = {a: [1, 2, 3]}
    
inspect will print

    { a: [ 1, 2, 3 ] }
    
JSON.stringify

    {
      "a": [
        1,
        2,
        3
      ]
    }

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to