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

json_scanf does not work when the key is an integer #50

Open
KrrishnaShah opened this issue Mar 2, 2019 · 2 comments
Open

json_scanf does not work when the key is an integer #50

KrrishnaShah opened this issue Mar 2, 2019 · 2 comments

Comments

@KrrishnaShah
Copy link

modifying line 1066:
i.e.
} else if (json_isalpha(fmt[i]) || json_get_utf8_char_len(fmt[i]) > 1 ) {

to
} else if ( json_isdigit(fmt[i]) || json_isalpha(fmt[i]) || json_get_utf8_char_len(fmt[i]) > 1 ) {

works fine.

@cpq
Copy link
Member

cpq commented Mar 2, 2019

Keys should be strings, as far as I know

@KrrishnaShah
Copy link
Author

it has become requirement for my application.
and hence i edited it for backward compatibility.

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