frozen icon indicating copy to clipboard operation
frozen copied to clipboard

json_scanf does not work when the key is an integer

Open KrrishnaShah opened this issue 5 years ago • 2 comments

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.

KrrishnaShah avatar Mar 02 '19 09:03 KrrishnaShah

Keys should be strings, as far as I know

cpq avatar Mar 02 '19 12:03 cpq

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

KrrishnaShah avatar Mar 02 '19 13:03 KrrishnaShah