Try E.toJS? This is basically JSON5, but I think things like pin names and functions can also be dumped.
For parsing, you can just use eval - but obviously you need to be able to trust the data since there are security issues there (any JS code in the input will get executed!).
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.
Try
E.toJS
? This is basically JSON5, but I think things like pin names and functions can also be dumped.For parsing, you can just use
eval
- but obviously you need to be able to trust the data since there are security issues there (any JS code in the input will get executed!).