Serge Zaitsev
|
f2864e69b9
|
Merged in MacGritsch/jsmn-patch (pull request #7)
Added "extern C" to use it with CPP.
|
11 years ago |
Gabriel Gritsch
|
db379ec124
|
Added "extern C" to use it with CPP.
|
11 years ago |
Gabriel Gritsch
|
a89501b2fb
|
Integrate changes made by Serge Zaitsev.
|
11 years ago |
Serge A. Zaitsev
|
5faee057cb
|
edited readme about what's inside the repo. closes issue #19
|
11 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 |
Gabriel Gritsch
|
733b8e958e
|
Changes for SIZE_MAX
|
11 years ago |
Gabriel Gritsch
|
c91adceded
|
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
- Added "extern C" to use it with CPP.
|
11 years ago |
Gabriel Gritsch
|
659842c65c
|
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
- Added "extern C" to use it with CPP.
|
11 years ago |
Gabriel Gritsch
|
385b42e740
|
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
- Added "extern C" to use it with CPP.
|
11 years ago |
Serge A. Zaitsev
|
86350f2bb1
|
a proper fix for signed comparison
|
11 years ago |
Serge A. Zaitsev
|
da95978033
|
added cast size_t to int to avoid warnings, removed string.h header since it was merged by accident
|
11 years ago |
Serge A. Zaitsev
|
d0ca2df480
|
fixed jsmntype_t definition
|
11 years ago |
Serge A. Zaitsev
|
c29d151bfa
|
added link to the web page
|
11 years ago |
Serge Zaitsev
|
2b0e4464c7
|
Merged in frnknstn/jsmn/markdown (pull request #5)
rename README so markdown renders in source control
|
11 years ago |
Serge Zaitsev
|
323395efac
|
Merged in frnknstn/jsmn/clean (pull request #4)
delete jsmn_test.exe when doing make clean
|
11 years ago |
Serge A. Zaitsev
|
40392b73e3
|
fixed indentation and comments style after merge
|
11 years ago |
Peter Finlayson
|
e397f0dfb6
|
rename README so markdown renders in source control
The readme file is in markdown, but most source control systems and repos (including bitbucket) expect a markdown readme to be called README.md
|
11 years ago |
Peter Finlayson
|
ee10da0f1e
|
delete jsmn_test.exe when doing make clean
When building the jsmn test suite on Windows via mingw, the output executable is called "jsmn_test.exe" instead of just "jsmn_test".
|
11 years ago |
del6597
|
07af5df94b
|
Removes the incorrect counting of tokens
|
12 years ago |
del6597
|
f190d18a52
|
Adds checking to unicode characters that are \uXXXX where X is a hexidecimal digit
Adds new tests for unicode character coverage
|
12 years ago |
del6597
|
6f4e2f7a56
|
Added a method for jsmn_estimate_tokens(const char *json);
|
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
|
3d6fb06ee9
|
fixed typo
|
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
|
37964b40ee
|
added optional parent token pointer support. Increases parsing speed
|
12 years ago |
Serge A. Zaitsev
|
cfbb5b5091
|
removed unused variable
|
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
|
e542dea54e
|
changed return value to jsmnerr_t, fixed warning about signed/unsigned values
|
12 years ago |
Serge A. Zaitsev
|
af04595fe2
|
fix: error is returned if brackets are unmatched
|
13 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 |
Serge A. Zaitsev
|
2928f7ec0e
|
renamed: get_token to alloc_token
|
13 years ago |
Serge A. Zaitsev
|
0c22b772ed
|
using system AR program, build options are moved to config.mk
|
13 years ago |
Serge A. Zaitsev
|
d6209011a5
|
added download links in README
|
13 years ago |
Serge A. Zaitsev
|
d6f48a6a3d
|
fixed: issue #1, thanks to m_einman for his patch
|
14 years ago |
Serge A. Zaitsev
|
42be9208f7
|
README updated
|
14 years ago |
Serge A. Zaitsev
|
4e869f7e9e
|
Complex types (objects and arrays) now have also size - number of child elements
|
14 years ago |
Serge A. Zaitsev
|
c4d9412483
|
Some comments added in json.c
|
14 years ago |
Serge A. Zaitsev
|
c955364a95
|
All objects renamed using jsmn prefix to keep consistency and not be mixed with other json libraries. Demo is now called just demo.
|
14 years ago |
Serge Zaitsev
|
4e29ee705f
|
Fix: check if no tokens lefs, return error in that case
|
14 years ago |