Skip to content

Commit

Permalink
add -m flag to json_verify for processing a stream of json values
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Mar 14, 2014
1 parent 13cf236 commit b8f7bcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions verify/json_verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ usage(const char * progname)
"usage: json_verify [options]\n"
" -q quiet mode\n"
" -c allow comments\n"
" -m verify a stream of multiple json entities\n",
" -u allow invalid utf8 inside strings\n",
progname);
exit(1);
Expand Down Expand Up @@ -60,6 +61,9 @@ main(int argc, char ** argv)
case 'u':
yajl_config(hand, yajl_dont_validate_strings, 1);
break;
case 'm':
yajl_config(hand, yajl_allow_multiple_values, 1);
break;
default:
fprintf(stderr, "unrecognized option: '%c'\n\n", argv[a][i]);
usage(argv[0]);
Expand Down

0 comments on commit b8f7bcc

Please sign in to comment.