jsmn: strings start from the first char after quotes

master
Serge A. Zaitsev 14 years ago
parent b91dee9102
commit 8e31e4d214

@ -79,7 +79,7 @@ static int jsmn_parse_string(jsmn_parser *parser) {
/* Quote: end of string */ /* Quote: end of string */
if (c == '\"') { if (c == '\"') {
token = jsmn_get_token(parser); token = jsmn_get_token(parser);
jsmn_fill_token(token, JSON_PRIMITIVE, start, parser->pos); jsmn_fill_token(token, JSON_PRIMITIVE, start+1, parser->pos);
return JSMN_SUCCESS; return JSMN_SUCCESS;
} }

Loading…
Cancel
Save