in my app i need to send an javascript Array object to php script via ajax post. Something like this:
var saveData = Array(); saveData[\"a\"] = 2; saveData[\
When using the data on the server, your characters can reach with the addition of slashes eg if string = {"hello"} comes as string = {\ "hello \"} to solve the following function can be used later to use json decode.