Thanks. This'll be an issue with JSON.stringify rather than JSON.parse (which is now adhering to the spec). If you want to work around it, use eval("("+json+")").
It's that pins are output as just pins - but obviously JSON has no idea about pins so when they are encountered it just returns 'undefined'.
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.
Thanks. This'll be an issue with
JSON.stringify
rather thanJSON.parse
(which is now adhering to the spec). If you want to work around it, useeval("("+json+")")
.It's that pins are output as just pins - but obviously JSON has no idea about pins so when they are encountered it just returns 'undefined'.