dominictarr/JSONStream — Issue #4: Feature: make JSON.stringify configurable
Author: rmoriz
Created: 2012-01-02 03:01:28+00:00
State: open

Maybe I am too picky about the formatting of the stringified JSON, but i really love to customize it for better human readability

e.g.

JSON.stringify object, null , 2

which returns

{
"user_id": 1,
"filename": "2011_08_29_21_47_32.pdf",
"tmp_filename": "/tmp/uploads/7e588b748835d9d4e385c0c000ef9edd.pdf",
"size": 3511730,
"sha": null,
"id": 133
}

maybe you can make it configurable?

see: https://github.com/dominictarr/JSONStream/blob/master/index.js#L100