Source

jsmn / jsmn.c

Author Commit Message Labels Comments Date
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
Serge A. Zaitsev
tested partial parser for strings, added primitive string parser test, fixed token allocation
Serge A. Zaitsev
added tests for primitive types, primitive types now can be stored outside the objects without braces
Serge A. Zaitsev
removed JSON string and token array from parser internals, because they must not be saved between parse() calls
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
Serge A. Zaitsev
renamed: get_token to alloc_token
Serge A. Zaitsev
fixed: issue #1, thanks to m_einman for his patch
Serge A. Zaitsev
Complex types (objects and arrays) now have also size - number of child elements
Serge A. Zaitsev
Some comments added in json.c
Serge A. Zaitsev
All objects renamed using jsmn prefix to keep consistency and not be mixed with other json libraries. Demo is now called just demo.
Serge Zaitsev
Fix: check if no tokens lefs, return error in that case
Serge A. Zaitsev
jsmn: strings start from the first char after quotes
Serge A. Zaitsev
Token manipulation functions changes. size_t replaced with unsigned int.
Serge A. Zaitsev
Design: primitive type implemented as a replacement to boolean/number/null. String tokens point to the unquoted string
Serge A. Zaitsev
Design: rewritten using parser structure
Serge A. Zaitsev
Design: some error codes added
Serge A. Zaitsev
Feature: make difference between numbers and other primitives
Serge A. Zaitsev
Design: added assert macro and return macro.
Serge A. Zaitsev
Design: Added asserts in parser. Increased number of tokens in demo.
Serge A. Zaitsev
Fix: errpos has got a correct type now
Serge A. Zaitsev
Design: objects and arrays are different types now
Serge A. Zaitsev
Design: unrolled reference tables. Nested functions moved outside. Got smaller code.
Serge A. Zaitsev
Fix: error position is an offset, not a pointer
  1. Prev
  2. 1
  3. 2
  4. Next