How do you trim white spaces in both the keys and values in a JavaScript Object recursively?
I came across one issue in which I was trying to \"clean\" a user suppli
You can just stringify it, string replace, and reparse it
JSON.parse(JSON.stringify(badJson).replace(/"\s+|\s+"/g,'"'))