Source

jsmn / jsmn.c

Author Commit Message Labels Comments Date
Serge Zaitsev
added js string boundaries checks for string parser, fixes issue #31; added tests to cover it; fixed makefile to use custom cflags/ldflags
Serge Zaitsev
added some tests for key/values nodes and added some stricter validations
Serge Zaitsev
moved i declaration to the top of the block, issue #38 fixed
Serge Zaitsev
removed trailing spaces
Serge Zaitsev
implemented key/value hierarchy; added 2 examples; fixed some warnings in tests
Serge Zaitsev
Gabriel Gritsch
Integrate changes made by Serge Zaitsev.
Gabriel Gritsch
Changes for SIZE_MAX
Gabriel Gritsch
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
Gabriel Gritsch
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
Gabriel Gritsch
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
Serge Zaitsev
added way to specify json string length, added test for non-strict mode
Serge Zaitsev
added way to estimate number of tokens before parsing
Comments 1
Serge Zaitsev
a proper fix for signed comparison
Serge Zaitsev
added cast size_t to int to avoid warnings, removed string.h header since it was merged by accident
Serge Zaitsev
fixed indentation and comments style after merge
del6597
Removes the incorrect counting of tokens
del6597
Adds checking to unicode characters that are \uXXXX where X is a hexidecimal digit
del6597
Added a method for jsmn_estimate_tokens(const char *json);
Serge A. Zaitsev
fixed: invalid object/arrays were passed successfully in tree mode; added tests for this case
Serge A. Zaitsev
fixed strict mode: space symbols are allowed after primitives; added some new tests
Serge A. Zaitsev
added optional parent token pointer support. Increases parsing speed
Serge A. Zaitsev
removed unused variable
Serge A. Zaitsev
tokens array items are now being initialized during allocation, removed redundant code that significantly slowed down the parser
Serge A. Zaitsev
changed return value to jsmnerr_t, fixed warning about signed/unsigned values
Serge A. Zaitsev
fix: error is returned if brackets are unmatched
Serge A. Zaitsev
fixed: superior node size is now an index, not a pointer (safe to realloc)
Serge A. Zaitsev
added reading with small number of tokens test, fixed NOMEM issue #2
Serge A. Zaitsev
added test for partial array reading
Serge A. Zaitsev
fixed typo, added JSMN_STRICT mode
  1. Prev
  2. 1
  3. 2
  4. Next