It doesn't work too well wish some actual valid jsons:<p>Input:<p>{"somekey": "value", "someother": "value,value,value"}<p>Output:<p>{<p><pre><code> "somekey": "value",
"someother": "value,
value,
value"
</code></pre>
}<p>Seems like the problem is with commas being converted to ,\n regardelss of them being inside a valid string.
Saving this for later - was going to try to make something like this for when I get invalid json and have to spend a bit figuring out what is wrong.<p>Thanks
Hi HN! This was a python script I used on the command line for a while, before spending a weekend converting it to a microsite.<p>Pretty print json with single quotes or None or anything that looks like json, like python dictionaries/arrays or anything that PHP can spit out.