Skip to content

Commit

Permalink
improve json parser
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 1, 2023
1 parent fc7d41d commit a9f1050
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/conf_io/conf_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ static ret_t conf_json_parse_object(json_parser_t* parser) {
if (c == '}') {
parser->cursor++;
break;
} else if (c != ',') {
} else if (c == ',') {
parser->cursor++;
} else {
log_debug("unexpected char %c at %s\n", c, parser->data + parser->cursor);
parser->cursor++;
}
}

Expand Down

0 comments on commit a9f1050

Please sign in to comment.