I would like to convert the following string into an array/nested array and iterate through it, so that i could use values from it.
str = "[[{"one": "1"}],[{"two": "2"}],[{"three": "3"}]]"
// I want to use value inside the {} brace
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.
That is JSON(*), and can be parsed as JSON.
And then you can use the usual
Array#eachorHash#eachiterators.*) Or at least it would be JSON, if it wasn’t a syntax error. You can’t have an unescaped double quote inside double quotes.