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