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, 10 months ago.

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

    colingoldberg
    Participant

    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
    Keymaster

    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
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.