var/ret = json_decode({"{"ReturnData":"<h1 style='color:green'>Hey</h1>\"}"})
world << html_encode(ret[ret[1]])
For some reason, this outputs "
<h1 style='olor:green'Hey</h1>
If you replace all instances of ' with \', it decodes properly.
Doesn't happen with double quotes