javascript - Convert string to array or object -


is there possible convert string array or object? not valid stringify json data, not sure how tackle this.

"{"subject":"test comment"},{"message":"test message."}" 

thank in advance!

like this:

json.parse('[' + '{"subject":"test comment"},{"message":"test message."}' + ']') 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -