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!
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."}' + ']')