json-preserve-indent
read from, write to and return a JSON string, minimizing diffs and preserving indents/fileending
var jsonPreserveIndent = var thing = thing// bazthingthing// {\n\t"foo": {\n\t\t"bar": "boo"\n\t}\n}\n
Based on json-file-plus, but without the filesystem parts.