I'm not sure I understand the issue here? E.toJS should escape everything enough for JSON. If you want to double-escape everything then you can always just run it through E.toJS twice?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm not sure I understand the issue here?
E.toJS
should escape everything enough for JSON. If you want to double-escape everything then you can always just run it throughE.toJS
twice?