JSON.parse() #244
Replies: 5 comments
-
Posted at 2014-03-27 by Sacha It should work like this: Sacha |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-27 by @gfwilliams Thanks. This'll be an issue with 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'. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-27 by @gfwilliams I've made a bug for this so i'll see what I can do about fixing it |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-27 by Sacha 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 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-27 by @gfwilliams 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 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-03-26 by Sacha
Hi,
Have some problem with JSON.parse.
Here is the output:
Back is undefined. I expected the same as 'test'.
Thanks
Sacha
Beta Was this translation helpful? Give feedback.
All reactions