zserge / jsmn

Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
MIT License
3.72k stars 783 forks source link

PLEASE MAKE CALLBACK INTERFACE #101

Closed ghost closed 5 years ago

ghost commented 7 years ago

So we don't have to re-allocate tokens or do a pre-parse to find out how many we need.

token tok;
while (gimme_next_token(&parser,&tok)) {
  /* do something */
}
pt300 commented 5 years ago

As much as that would be interesting it's not going to happen. I don't think systems at which JSMN is aiming will be happy with such a solution.