jsmn / jsmn_test.c

Author Commit Message Labels Comments Date
Serge Zaitsev avatarSerge Zaitsev
Gabriel Gritsch avatarGabriel Gritsch
Integrate changes made by Serge Zaitsev.
Serge Zaitsev avatarSerge Zaitsev
added way to specify json string length, added test for non-strict mode
Serge Zaitsev avatarSerge Zaitsev
added way to estimate number of tokens before parsing
Comments 1
Serge Zaitsev avatarSerge Zaitsev
fixed indentation and comments style after merge
Default avatar del6597
Adds checking to unicode characters that are \uXXXX where X is a hexidecimal digit
Default avatar Serge A. Zaitsev
fixed: invalid object/arrays were passed successfully in tree mode; added tests for this case
Default avatar Serge A. Zaitsev
fixed tests: missing jsmn_init() before parsing; added tests for empty arrays/objects
Default avatar Serge A. Zaitsev
fixed strict mode: space symbols are allowed after primitives; added some new tests
Default avatar Serge A. Zaitsev
tokens array items are now being initialized during allocation, removed redundant code that significantly slowed down the parser
Default avatar Serge A. Zaitsev
fixed: superior node size is now an index, not a pointer (safe to realloc)
Default avatar Serge A. Zaitsev
added reading with small number of tokens test, fixed NOMEM issue #2
Default avatar Serge A. Zaitsev
added test for partial array reading
Default avatar Serge A. Zaitsev
fixed typo, added JSMN_STRICT mode
Default avatar Serge A. Zaitsev
added one more test case for partial string parser
Default avatar Serge A. Zaitsev
tested partial parser for strings, added primitive string parser test, fixed token allocation
Default avatar Serge A. Zaitsev
added tests for primitive types, primitive types now can be stored outside the objects without braces
Default avatar Serge A. Zaitsev
removed JSON string and token array from parser internals, because they must not be saved between parse() calls
Default avatar Serge A. Zaitsev
changed API: parse now is more flexible, but init jsut resets the parser; added new test macro to compate strings, fixed Makefile
Default avatar Serge A. Zaitsev
switched to C unit-tests instead of bash
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.