is there possible to convert this string to array or object? It is not a valid stringify JSON data, not sure how to tackle this.
"{"subject":"Test Comment"},{"message":"Test Message."}"
Thank in advance!
Like this:
JSON.parse('[' + '{"subject":"Test Comment"},{"message":"Test Message."}' + ']')
来源:https://stackoverflow.com/questions/29949237/convert-string-to-array-or-object