22 Commits (26193d39c2d17bf184b691ebfa406b5b9782577a)

Author SHA1 Message Date
Serge A. Zaitsev cf38b7d171 added js string boundaries checks for string parser, fixes issue #31; added tests to cover it; fixed makefile to use custom cflags/ldflags
10 years ago
Serge A. Zaitsev 91d7389ec8 added some tests for key/values nodes and added some stricter validations
10 years ago
Serge A. Zaitsev 838061aa96 removed trailing spaces
10 years ago
Serge A. Zaitsev 8a22e0a149 implemented key/value hierarchy; added 2 examples; fixed some warnings in tests
10 years ago
Serge A. Zaitsev f0ae25f873 added way to specify json string length, added test for non-strict mode
11 years ago
Serge A. Zaitsev 809c7c6db1 added way to estimate number of tokens before parsing
11 years ago
Serge A. Zaitsev 40392b73e3 fixed indentation and comments style after merge
11 years ago
del6597 f190d18a52 Adds checking to unicode characters that are \uXXXX where X is a hexidecimal digit
12 years ago
Serge A. Zaitsev 958c758f2e fixed: invalid object/arrays were passed successfully in tree mode; added tests for this case
12 years ago
Serge A. Zaitsev cf172e71d7 fixed tests: missing jsmn_init() before parsing; added tests for empty arrays/objects
12 years ago
Serge A. Zaitsev e0ceee893c fixed strict mode: space symbols are allowed after primitives; added some new tests
12 years ago
Serge A. Zaitsev 974133db85 tokens array items are now being initialized during allocation, removed redundant code that significantly slowed down the parser
12 years ago
Serge A. Zaitsev f3b41ae30c fixed: superior node size is now an index, not a pointer (safe to realloc)
13 years ago
Serge A. Zaitsev a983a76061 added reading with small number of tokens test, fixed NOMEM issue #2
13 years ago
Serge A. Zaitsev 53454e5429 added test for partial array reading
13 years ago
Serge A. Zaitsev 41171ecd51 fixed typo, added JSMN_STRICT mode
13 years ago
Serge A. Zaitsev e395ad562e added one more test case for partial string parser
13 years ago
Serge A. Zaitsev 30f932772e tested partial parser for strings, added primitive string parser test, fixed token allocation
13 years ago
Serge A. Zaitsev 929e233756 added tests for primitive types, primitive types now can be stored outside the objects without braces
13 years ago
Serge A. Zaitsev 443be365f6 removed JSON string and token array from parser internals, because they must not be saved between parse() calls
13 years ago
Serge A. Zaitsev bed0a7a3e6 changed API: parse now is more flexible, but init jsut resets the parser; added new test macro to compate strings, fixed Makefile
13 years ago
Serge A. Zaitsev 4b5c5ed66a switched to C unit-tests instead of bash
13 years ago