How can I serialize an object to JSON in JavaScript?
You're looking for JSON.stringify().
JSON.stringify()
1.4m articles
1.4m replys
5 comments
57.0k users