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

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -