jquery equivalent for JSON.stringify

JavascriptJqueryJson

Javascript Problem Overview


> Possible Duplicate:
> Serializing to JSON in jQuery

I'm using jquery as a library in my javascript code. But sometimes I have to JSON.stringify().

When I want to keep my code IE compatible I use
$("head").append('<script type="text/javascript" src="../Includes/json2.js"></script>');
to get my JSON.stringify() to work. Isn't there a equivalent in jquery for JSON.stringify()?

Javascript Solutions


Solution 1 - Javascript

There is no such functionality in jQuery. Use JSON.stringify or alternatively any jQuery plugin with similar functionality (e.g jquery-json).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHighmastdonView Question on Stackoverflow
Solution 1 - JavascriptMariusz JamroView Answer on Stackoverflow