Given
let object = { html: "<span class=\"box\">square</span>"}
Want to be able to convert to the following string
{"html":"<span class=\"box\">square</span>"} in order to view in a json beautifier.
JSON.stringify(object) gives
{"html":"<span class=\\"box\\">square</span>"}
JSON.stringify(object).replace(/\\"/g, '\"') gives {"html":"<span class="box">square</span>"}