Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access keyword values in json via "." notation #8671

Closed
JarLowrey opened this issue May 6, 2017 · 3 comments
Closed

Cannot access keyword values in json via "." notation #8671

JarLowrey opened this issue May 6, 2017 · 3 comments
Labels

Comments

@JarLowrey
Copy link

If you put a "min" key (for example) in some json and attempt to access it via json.min the following syntax error will arise Parse Error: Expected ',' or ')'. Not sure if this is intended behavior or not, json["min"] works fine. IDK if it is worth the reward/effort ratio to fix this in the GD Script editor.

@nunodonato
Copy link
Contributor

just to double check, did you try with other key names? because 'min' is a keyword in gdscript and I believe you can't do dict.min or dict.max

@akien-mga
Copy link
Member

That's indeed another symptom of #8085, which @bojidar-bg proposed to fix with #8217.

@bojidar-bg
Copy link
Contributor

Closing in favour of #8085, since it is more active that this one, while the underlying problem is the same as in #7321.

P.S. Off to retitle the other issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants