I have a .json file that currently looks as so in txt editor
{"a": [1,2,3], "b":[2,3], "c":[1,3,5]}
Essentially its holding a dictionary at the moment. I was wondering if there was a way to use Python to "beautify" the .json file by adding newlines every key. Using json indent results in:
{
"a": [
1,2,3
],
"b":[
2,3
],
"c":[
1,3,5
]
}
So now I want to strip the newlines and form:
{
"a": [1,2,3],
"b":[2,3],
"c":[1,3,5]
}