Skip to content

Instantly share code, notes, and snippets.

@luk- luk-/gist:6370833
Last active Dec 21, 2015

Embed
What would you like to do?
comma first json stringify via dominictarr
JSON.stringify(o, null, 2)
.split(/(,\n\s+)/)
.map(function (e, i) {
return i%2 ? '\n'+e.substring(4)+', ' : e
})
.join('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.