Is JSON.stringify() acceptable?

I’m working on a very Javascript heavy application, and we’ve set up a number of different Objects to handle the data on the page. Very often, we’ll need to send all of the data from these objects to PHP. Right now, we’re using JSON.stringify. Are there any issues with this? It seem’s like it does exactly what we need, but are there any downsides?


That’s the right process that you’re following there.

You have to pass the data as a string, so you can do it as JSON, XML or HTML, so in your situation JSON is the best choice.