Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to convert JSON multidimensional string array to JS multidimensional array?
The following response comes from the server:
[[{"key":"value","key":"value"}],[{"ID":"1","NAME":value","PARENT_NAME":"value","DIR_NAME": "value","IMAGE":value"},{"ID":"2","NAME":"value","PARENT_NAME":"value","DIR_NAME":"value","IMAGE":" value"}]]
Answer the question
In order to leave comments, you need to log in
Marvelous )))
var json_str = '[[{"key":"value","key":"value"}],[{"ID":"1","NAME":value","PARENT_NAME":"value","DIR_NAME":"value","IMAGE":value"},{"ID":"2","NAME":"value","PARENT_NAME":"value","DIR_NAME":"value","IMAGE":"value"}]]';
console.log(JSON.parse(json_str));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question