I've got an array of objects in json format: [{"name":"obj1", "list":["elem1", "elem2", "elem3"]}, {"name":"obj2", "list":["elem4", "elem5", "elem6"]}]
Now I'd like to construct regexp to remove quotation marks from around elements in the ...
I've got a bit of a problem. I'm currently working on converting an old system to a newer version. In the old version, data requests were managed by Java applets, which ...
I have this ReGex expression in JavaScript right now: /(.*)(,)([\]\}]+)$/.exec(stringData).
Basically it's removing any trailing comma from a malformed JSON string, (by concatenating r[1] + r[3] you get it).
It's working well except ...
Is there are regex that I can use in JavaScript so that I can parse all special characters except those used by JSON? The main problem I am having is that ...
I noticed that if I put double quotes on my input boxes that get passed to php via json, json_decode will return null. Thus, I decided to replace double quotes with ...