When I try to parse a string containing either double quotes or single quotes, an error is being thrown:
JSON Unexpected token.
Is there a way to properly parse and bind it to a variable in Vue.js?
PHP
$arr = array();
$arr[0]['description'] = "Some Description\"";
print_r(json_encode($arr));
JavaScript (Vue.js)
this.description = JSON.parse(data); // This line is causing the error