We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const char* j3 = "{\"a\":[],\"ab\":[{\"c1\":1,\"c2\":2},{\"c1\":3,\"c2\":4}]}"; ASSERT(mjson_find(j3, strlen(j3), "$.a[0]", &p, &n) == MJSON_TOK_INVALID); // this line FAIL!
printf("mjson got: %d\n", mjson_find(j3, strlen(j3), "$.a[0]", &p, &n)); printf("got: %.*s\n", n, p);
output:
mjson got 123 got: {"c1":1,"c2":2}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
output:
The text was updated successfully, but these errors were encountered: