Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-12-16 | Implement JSON_SORT_KEYS encoding flag | Petri Lehtinen | 2 | -13/+87 | |
With this flag, the objects are sorted by key when encoding. | |||||
2009-12-05 | Implement JSON_ENSURE_ASCII encoding flag | Petri Lehtinen | 5 | -22/+88 | |
With this flag, all Unicode characters outside the ASCII range are escaped. | |||||
2009-12-02 | Use int32_t instead of plain int with Unicode code points | Petri Lehtinen | 3 | -6/+10 | |
On some architectures, int just isn't big enough to hold all Unicode code points. | |||||
2009-11-08 | Merge branch '1.1' | Petri Lehtinen | 2 | -2/+1 | |
Conflicts: configure.ac doc/conf.py | |||||
2009-11-08 | jansson 1.1.2v1.1.2 | Petri Lehtinen | 1 | -1/+1 | |
2009-11-07 | Don't include stdint.h in jansson.h | Petri Lehtinen | 1 | -1/+0 | |
It's not needed | |||||
2009-11-04 | Merge branch '1.1' | Petri Lehtinen | 1 | -1/+7 | |
Conflicts: test/.gitignore test/testprogs/Makefile.am | |||||
2009-11-04 | dump: Revise whitespace usage | Petri Lehtinen | 2 | -16/+25 | |
- Never append newline to output - By default, add spaces between array and object items for more readable output - Introduce the flag JSON_COMPACT to not add the aforementioned spaces | |||||
2009-10-29 | load: Parse a badly put - sign correctly | Petri Lehtinen | 1 | -1/+5 | |
Thanks to Manolis Delakis for reporting. | |||||
2009-10-27 | json_load_file: Initialize the error struct properly | Petri Lehtinen | 1 | -0/+2 | |
Failing to do this has the effect that the error message is not returned when the input file cannot be opened (e.g. if it doesn't exist). Thanks to Martin Vopatek for reporting. | |||||
2009-10-20 | jansson 1.1v1.1 | Petri Lehtinen | 1 | -1/+1 | |
2009-10-19 | Add C++ guards to jansson.h | raoulh | 1 | -0/+8 | |
Signed-off-by: Petri Lehtinen <petri@digip.org> | |||||
2009-10-16 | Fix indentation | Petri Lehtinen | 4 | -13/+14 | |
No functional changes. | |||||
2009-10-15 | Enhance handling of circular references | Petri Lehtinen | 3 | -42/+75 | |
It's now an error to try to add an object or array to itself. The encoder checks for circular references and fails with an error status if one is detected. | |||||
2009-10-15 | json_dumps: Close the strbuffer if dumping fails | Petri Lehtinen | 1 | -2/+6 | |
2009-10-14 | Make integer, real and string mutable | Petri Lehtinen | 2 | -4/+47 | |
Added functions: json_string_set json_integer_set json_real_set While at it, clarify the documentation and parameter naming of json_{string,integer,real}_value() a bit. | |||||
2009-10-13 | Don't use non-portable asprintf() | Petri Lehtinen | 1 | -14/+13 | |
Thanks to Adam Strzelecki for reporting. | |||||
2009-10-11 | Merge branch '1.0' | Petri Lehtinen | 3 | -6/+6 | |
Conflicts: configure.ac doc/conf.py | |||||
2009-10-11 | jansson 1.0.4v1.0.41.0 | Petri Lehtinen | 1 | -1/+1 | |
2009-10-11 | Extend object API | Petri Lehtinen | 4 | -13/+94 | |
Added functions: json_object_size json_object_clear json_object_update | |||||
2009-10-10 | Check json_object_set_new arguments | Petri Lehtinen | 1 | -1/+1 | |
A segfault was caused by NULL key. | |||||
2009-10-06 | Fix a few more compilation issues | Petri Lehtinen | 1 | -2/+2 | |
These were left out from the previous commit. | |||||
2009-10-01 | Make it compile on platforms where char is unsigned | Petri Lehtinen | 2 | -3/+3 | |
Linux on powerpc seems to be one such platform. | |||||
2009-09-29 | Extend array API | Petri Lehtinen | 2 | -10/+158 | |
Added functions: json_array_insert json_array_insert_new json_array_remove json_array_clear json_array_extend | |||||
2009-09-14 | Merge branch '1.0' | Petri Lehtinen | 1 | -1/+1 | |
Conflicts: configure.ac doc/conf.py | |||||
2009-09-14 | jansson 1.0.3v1.0.3 | Petri Lehtinen | 1 | -1/+1 | |
2009-09-14 | load: Check for integer and real overlfows and underflows | Petri Lehtinen | 1 | -9/+40 | |
Backported from master, commit 5406c2b3d347505149d382213b6f318f8c35de6a: * deleted test/testdata/invalid-stripped because the stripped tests don't exist in 1.0 | |||||
2009-09-13 | load: Check for integer and real overlfows and underflows | Petri Lehtinen | 1 | -9/+40 | |
2009-09-13 | Use unsigned long instead of uint32_t | Petri Lehtinen | 2 | -8/+8 | |
Some day we will have ANSI C compatibility... This change doesn't make the API backwards incompatible because uint32_t was only used in flags to json_dump*() and the flags are meant to be used only by ORing constants and macro output, and actually currently only JSON_INDENT can be used. | |||||
2009-09-08 | Merge branch '1.0' into HEAD | Petri Lehtinen | 2 | -6/+3 | |
Conflicts: configure.ac doc/conf.py | |||||
2009-09-08 | jansson 1.0.2v1.0.2 | Petri Lehtinen | 1 | -1/+1 | |
2009-09-08 | load: Handle EOF correctly | Petri Lehtinen | 1 | -5/+2 | |
In stream_get(), EOF never got it to stream->buffer and because of this, stream_unget() failed on some situations. This patch makes stream_get() handle EOF just like any other byte. As a "side effect", lex_scan_string() now needs to unget the EOF, or otherwise it ends up in error message on premature end of input. | |||||
2009-09-07 | Don't perform reference counting on true, false and null | Petri Lehtinen | 2 | -8/+8 | |
This makes their constructors thread safe. A special reference count -1 is used to test whether to perform reference counting on a value or not. | |||||
2009-09-06 | Better argument validation | Petri Lehtinen | 1 | -2/+23 | |
All pointer arguments are now tested for NULL. json_string() now also tests that strdup() succeeds. This is to ensure that no NULL values end up in data structures. Also desribe the different sources of errors in documentation. | |||||
2009-09-06 | Don't include unistd.h | Petri Lehtinen | 2 | -2/+0 | |
It's not needed. | |||||
2009-09-06 | Merge branch '1.0' | Petri Lehtinen | 2 | -2/+2 | |
Conflicts: configure.ac doc/conf.py | |||||
2009-09-04 | jansson 1.0.1v1.0.1 | Petri Lehtinen | 1 | -1/+1 | |
2009-09-04 | jansson.h: Fix typo | Petri Lehtinen | 1 | -1/+1 | |
json_is_true was spelled jsin_is_true. Quite fatal. | |||||
2009-09-04 | dump: Optimize indenting | Petri Lehtinen | 1 | -8/+9 | |
Don't alloca() a whitespace buffer and fill it with spaces in each call to dump_indent. Instead, use a static whitespace buffer. As a bonus, this saves the use of poorly portable alloca(). | |||||
2009-09-04 | load: Factor out an unneeded strdup | Petri Lehtinen | 1 | -1/+12 | |
By "stealing" the string parsed out in lexer, one strdup can be saved. | |||||
2009-09-04 | Don't define -std=c99 in AM_CFLAGS | Petri Lehtinen | 1 | -1/+1 | |
It is not needed. | |||||
2009-09-04 | Add reference stealing functions for inserting values to objects and arrays | Petri Lehtinen | 2 | -12/+60 | |
The non-stealing functions are now just simple wrappers around these. | |||||
2009-08-24 | Detect garbage near EOF in json_loadf() and json_load_file() | Petri Lehtinen | 1 | -0/+10 | |
2009-08-23 | array: Fix a few checks and a leak | Petri Lehtinen | 1 | -2/+4 | |
2009-08-04 | Refuse to dump other types than array and object as the root value | Petri Lehtinen | 1 | -0/+6 | |
2009-07-30 | Remove unimplemented json_clone() | Petri Lehtinen | 1 | -2/+0 | |
2009-07-30 | Add macro json_is_boolean | Petri Lehtinen | 1 | -0/+1 | |
2009-07-30 | Add LICENSE and a copyright note to all sources | Petri Lehtinen | 10 | -0/+70 | |
2009-07-28 | Rename json_{load,dump} to json_{load,dump}_file | Petri Lehtinen | 3 | -35/+35 | |
2009-07-28 | Fix some memory leaks and invalid memory references | Petri Lehtinen | 2 | -7/+22 | |