aboutsummaryrefslogtreecommitdiff
path: root/jsmn.c
Commit message (Collapse)AuthorAge
* Typo in commentBenBE2018-10-01
| | | Fixes #84
* Seems to actually fix zserge/jsmn#81pt3002016-10-01
|
* Partialy fixes zserge/jsmn#81pt3002016-10-01
| | | | Still will report invalid amount if we fetch it with something like "{"key 1": 1234}}"
* Fix trivial comment typo.Matthew Fernandez2016-01-13
|
* Fix deheader warningsBastien Dejean2015-12-14
| | | | | | | | Prior to this commit the output of deheader was: remove <stdlib.h> from ./jsmn.c in ./example/jsondump.c, realloc() portability requires <unistd.h>. in ./example/simple.c, strtol() portability requires <stdlib.h>. saw 4 files, 16 includes, 1 removable
* added check for null pointer before fixing tokens after parsing is doneSerge A. Zaitsev2015-10-17
|
* applied fix from wiresharkSerge A. Zaitsev2015-10-17
|
* changed jsmnerr_t type to intSerge A. Zaitsev2015-10-17
|
* fixed return value on incremental partingSerge A. Zaitsev2015-10-17
|
* added js string boundaries checks for string parser, fixes issue #31; added ↵Serge A. Zaitsev2014-11-17
| | | | tests to cover it; fixed makefile to use custom cflags/ldflags
* added some tests for key/values nodes and added some stricter validationsSerge A. Zaitsev2014-11-17
|
* moved i declaration to the top of the block, issue #38 fixedSerge A. Zaitsev2014-11-17
|
* removed trailing spacesSerge A. Zaitsev2014-11-17
|
* implemented key/value hierarchy; added 2 examples; fixed some warnings in testsSerge A. Zaitsev2014-11-17
|
* added way to specify json string length, added test for non-strict modeSerge A. Zaitsev2014-02-21
|
* added way to estimate number of tokens before parsingSerge A. Zaitsev2014-02-20
|
* a proper fix for signed comparisonSerge A. Zaitsev2014-02-09
|
* added cast size_t to int to avoid warnings, removed string.h header since it ↵Serge A. Zaitsev2014-02-09
| | | | was merged by accident
* fixed indentation and comments style after mergeSerge A. Zaitsev2014-01-27
|
* Removes the incorrect counting of tokensdel65972013-07-19
|\
| * Added a method for jsmn_estimate_tokens(const char *json);del65972013-07-17
| |
* | Adds checking to unicode characters that are \uXXXX where X is a hexidecimal ↵del65972013-07-19
|/ | | | | | digit Adds new tests for unicode character coverage
* fixed: invalid object/arrays were passed successfully in tree mode; added ↵Serge A. Zaitsev2012-10-22
| | | | tests for this case
* fixed strict mode: space symbols are allowed after primitives; added some ↵Serge A. Zaitsev2012-09-26
| | | | new tests
* added optional parent token pointer support. Increases parsing speedSerge A. Zaitsev2012-09-26
|
* removed unused variableSerge A. Zaitsev2012-09-23
|
* tokens array items are now being initialized during allocation, removed ↵Serge A. Zaitsev2012-09-23
| | | | redundant code that significantly slowed down the parser
* changed return value to jsmnerr_t, fixed warning about signed/unsigned valuesSerge A. Zaitsev2012-09-03
|
* fix: error is returned if brackets are unmatchedSerge A. Zaitsev2012-02-02
|
* fixed: superior node size is now an index, not a pointer (safe to realloc)Serge A. Zaitsev2012-02-02
|
* added reading with small number of tokens test, fixed NOMEM issue #2Serge A. Zaitsev2012-02-02
|
* added test for partial array readingSerge A. Zaitsev2012-02-02
|
* fixed typo, added JSMN_STRICT modeSerge A. Zaitsev2012-02-01
|
* tested partial parser for strings, added primitive string parser test, fixed ↵Serge A. Zaitsev2012-02-01
| | | | token allocation
* added tests for primitive types, primitive types now can be stored outside ↵Serge A. Zaitsev2012-02-01
| | | | the objects without braces
* removed JSON string and token array from parser internals, because they must ↵Serge A. Zaitsev2012-02-01
| | | | not be saved between parse() calls
* changed API: parse now is more flexible, but init jsut resets the parser; ↵Serge A. Zaitsev2012-02-01
| | | | added new test macro to compate strings, fixed Makefile
* renamed: get_token to alloc_tokenSerge A. Zaitsev2012-02-01
|
* fixed: issue #1, thanks to m_einman for his patchSerge A. Zaitsev2011-03-28
|
* Complex types (objects and arrays) now have also size - number of child elementsSerge A. Zaitsev2010-12-28
|
* Some comments added in json.cSerge A. Zaitsev2010-12-27
|
* All objects renamed using jsmn prefix to keep consistency and not be mixed ↵Serge A. Zaitsev2010-12-27
| | | | with other json libraries. Demo is now called just demo.
* Fix: check if no tokens lefs, return error in that caseSerge Zaitsev2010-12-26
|
* jsmn: strings start from the first char after quotesSerge A. Zaitsev2010-11-22
|
* Token manipulation functions changes. size_t replaced with unsigned int.Serge A. Zaitsev2010-11-17
|
* Design: primitive type implemented as a replacement to boolean/number/null. ↵Serge A. Zaitsev2010-11-17
| | | | String tokens point to the unquoted string
* Design: rewritten using parser structureSerge A. Zaitsev2010-11-16
|
* Design: some error codes addedSerge A. Zaitsev2010-11-16
|
* Feature: make difference between numbers and other primitivesSerge A. Zaitsev2010-11-16
|
* Design: added assert macro and return macro.Serge A. Zaitsev2010-11-16
|