I have an object in a file like:
foo.txt
{
"methods" :
{
0 : "GET",
},
}
I would like to convert to json with jq or some other shell converter. Specifically I want to turn each key into a string 0 -> "0". Keys can be numerical or alphanumerical.
Update
Any other tool is also acceptable. Anything that gets the job done. Preferably a shell tool.