Show HN: Pretty print invalid JSON (or anything that looks sort of like JSON)(prettyprintplease.com) |
Show HN: Pretty print invalid JSON (or anything that looks sort of like JSON)(prettyprintplease.com) |
Input:
{"somekey": "value", "someother": "value,value,value"}
Output:
{
"somekey": "value",
"someother": "value,
value,
value"
}Seems like the problem is with commas being converted to ,\n regardelss of them being inside a valid string.
Thanks
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.