I'm trying to print a json string in a json format.
So, the input would be something like: "{\"a": 1, \"b\":\"2\"}"
I need the output to look like this:
{
"a":1,
"b":"2"
}
I have tried using JSON.stringify but it just prints out the same string. Any help is appreciated.