i have some arrays and js objects put into a string using JSON.stringify
how can i decode that string again into arrays and objects ?
Thank you .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JSON.parselets you do that.You can see plenty of examples everywhere on the Intarwebs.
Even jQuery has a shim for this method (not supported in IE6, maybe 7): jQuery.parseJSON. That is, if you use jQuery.