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

Error with several same keys. #59

Closed
pokevas opened this issue Oct 10, 2016 · 1 comment
Closed

Error with several same keys. #59

pokevas opened this issue Oct 10, 2016 · 1 comment

Comments

@pokevas
Copy link

pokevas commented Oct 10, 2016

We have JSON:
http://pastebin.com/CRxepHVa
This JSON have 2 same keys: "size".
JSON_Value *root_value = json_parse_file(jsonFile1);
We recieve NULL. Library can't process JSON files with several same keys.
Maybe add support? For example, we parse to struct only last key.
On example, skip size:0 and insert size:1 in struct.
Thanks.

@kgabis
Copy link
Owner

kgabis commented Oct 11, 2016

This is an incorrect JSON so I'm correctly returning an error. You might want to know that there's something wrong with a JSON you're using.

@kgabis kgabis closed this as completed Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants