I try to convert a javascript object into string, but i just cannot get the solution after Google on it. Can someone help me about it? Thanks first...
webdesignservic
0
Newbie Poster
Recommended Answers
Jump to PostRefer to:
https://github.com/douglascrockford/JSON-js/blob/master/json2.jsYou will need to "import" that js script into your page, then call
JSON.stringify( obj )
-ex:<script type="text/javascript" src="/javascript/json2.js"></script> <script type="text/javascript"> var settings={"username":"xxx","password":"secret"}; alert( JSON.stringify( …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.