jQuery UI Widgets Forums General Discussions stringify() ?

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • stringify() ? #32658


    I want to be able to do the equivalent of json_encode in javascript for an individual variable. Is stringify() available? If not, how do I do it?

    I want to keep this simple- without using any dataloader etc.

    I see that JSON.stringify() works. Can I rely on JSON being available?

    Colin G

    stringify() ? #32662

    Peter Stoev

    Hi Colin,

    If your app targets only modern browsers, JSON object would be available. Otherwise, you may find and include json2.js, too.

    Best Regards,
    Peter Stoev

    jQWidgets Team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.