It doesn't work too well wish some actual valid jsons:
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.