I can’t comprehend how it works without using eval – what’s the secret behind this?
Edit: Could someone present a trivial example of how the tree structure is converted to an object?
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.
trivial example of how to convert a string with json into an object without eval:
yes this a horrible way to do it, but it does what it claims for that string :p