JSFiddle - React, Tailwind, and code Playground
by Sergio
HTML
<div id="results"></div>
JavaScript
// Original html encoded JSON string
var json = '[{"id":1,"user":"[email protected]","action":"{\"action\":\"set quotas\",\"quotas\":{\"RET\":0.7,\"SPV\":0.3}}","created_at":"2015-08-31 10:46:51","updated_at":"2015-08-31 10:46:51"}]';
// decoded JSON string into a non-appended <div> element
var valid_json = json.replace(/\/&/g, '&')
.replace(/\"\{/g,'{')
.replace(/\}\"/g,'}');
var decoded = jQuery('<div/>').html(valid_json).text();
// parsed JSON object
var obj = jQuery.parseJSON(decoded);
console.log(obj);
//$('#results').html(obj.action);