Hacker News new | ask | show | jobs
by savy91 1685 days ago
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.