[SOLVED] JSON attribute accepts spaces in name but cannot be addressed #1290
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
|
Posted at 2019-02-26 by @gfwilliams I believe it's still entirely valid JS... You can just reference them with |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Posted at 2019-02-26 by @yerpj Correct, it is not a big problem. I didn't know JS was so permissive. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-02-26 by @yerpj
Hi,
I just came over a an odd situation:
I have a structure myData
I can call
myData.A1as well asmyData.A2but of coursemyData.A 3fails because of the space.Is it possible that Espruino interpreter should reject attributes containing spaces in the name?
Beta Was this translation helpful? Give feedback.
All reactions