-
• #2
-
• #3
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'.
-
• #4
I've made a bug for this so i'll see what I can do about fixing it
-
• #5
Thanks Gordon for the workaround.
Could it be that when i implement it right know with eval, that this won't work anymore after you fixed it on the "stringify" side ?
Sacha
-
• #6
Well, I was trying to think of a way around this - possibly converting the pin to an integer - which would work fine for digitalWrite/etc - the only problem would be if you tried to use a
pin.read/write/set/reset
Hi,
Have some problem with JSON.parse.
Here is the output:
Back is undefined. I expected the same as 'test'.
Thanks
Sacha