Source

jsmn / jsmn.h

Author Commit Message Labels Comments Date
Serge A. Zaitsev
fixed typo
Serge A. Zaitsev
added optional parent token pointer support. Increases parsing speed
Serge A. Zaitsev
fixed: superior node size is now an index, not a pointer (safe to realloc)
Serge A. Zaitsev
tested partial parser for strings, added primitive string parser test, fixed token allocation
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
Complex types (objects and arrays) now have also size - number of child elements
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 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
Fix: errpos has got a correct type now
Serge A. Zaitsev
Demo separated from the jsmn code. Makefile changed. Some comments added
Serge A. Zaitsev
Initial commit. Demo program is included in the jsmn.c code. Ugly names and no comments. Please, don't read this changeset