- Feb 12, 2018
-
-
Petri Lehtinen authored
jansson 2.11
-
- Feb 10, 2018
-
-
Corey Farrell authored
-
- Feb 09, 2018
-
-
Petri Lehtinen authored
Document encoding requirements for callbacks
-
Petri Lehtinen authored
Fix generated `pkg-config` file using cmake.
-
Petri Lehtinen authored
Use a more specific error code for premature end of input
-
Petri Lehtinen authored
document that json_error_code will be added in version 2.11
-
Petri Lehtinen authored
Original patch by @phst. Fixes #369.
-
Petri Lehtinen authored
Add json_sprintf and json_vsprintf
-
Petri Lehtinen authored
Fixes #392
-
Petri Lehtinen authored
Atomic references and thread safe json_dump
-
Corey Farrell authored
Clarify thread safety docs, rename JANSSON_THREAD_SAFE
-
- Feb 08, 2018
-
-
Petri Lehtinen authored
-
- Feb 02, 2018
-
-
Corey Farrell authored
Fixes #387
-
Corey Farrell authored
Circular reference detection in json_dump was not thread safe. Replace visited flag with a hashtable_t. Issue #387
-
- Jan 30, 2018
-
-
Corey Farrell authored
This makes use of __atomic or __sync builtin compiler functions to make json_decref and json_incref thread-safe. Issue #387
-
- Dec 21, 2017
-
-
Philipp Stephani authored
-
- Dec 19, 2017
-
-
Philipp Stephani authored
-
- Dec 17, 2017
-
-
Petri Lehtinen authored
json_pack: Enable more complete stealing of references.
-
- Dec 14, 2017
-
-
Corey Farrell authored
The `O` format causes reference counts to increase, but in an error they are not released. Callers to unpack functions that use the `O` format should use pointers pre-initialized to NULL so they can safely release the reference on error. Also corrected typo which said this was like `O` (itself). Fixes #135
-
Corey Farrell authored
This function needs to release a reference to value if the other arguments are invalid. Issue #135
-
Corey Farrell authored
Users of the "o" format have an expectation that the object reference will be stolen. Any error causes the collection process to end early. This patch causes json_pack and related functions to continue scanning the format and parameters so all references can be stolen to prevent leaks. This makes no attempt to continue processing if the format string is broken or missing. 'make check' still passes. Ran test_pack under valgrind and verified that the leaked reference is fixed. Added a test which uses refcounts to verify that the reference was correctly stolen after a NULL value error. Issue #135
-
- Dec 13, 2017
-
-
Petri Lehtinen authored
Fixes akheron/jansson#373
-
Petri Lehtinen authored
Remove extra reference actions in parsers.
-
Petri Lehtinen authored
Document that length-aware string functions have been added in 2.7
-
- Dec 10, 2017
-
-
Philipp Stephani authored
-
- Nov 15, 2017
-
-
Corey Farrell authored
Make parse_object use json_object_set_new_nocheck and make parse_array use json_array_append_new, remove json_decref from error and success paths. Fixes #376
-
- Nov 07, 2017
-
-
Joe Hura authored
'sys/time.h' is a typo, it should read: 'sys/types.h'
-
Petri Lehtinen authored
Reported by Diederick Huijbers
-
- Oct 30, 2017
-
-
Ameya Vikram Singh authored
Fixed the generated `jansson.pc` with cmake to be consistent with the one generated using GNU Autotools.
-
- Oct 09, 2017
-
-
Petri Lehtinen authored
Use last byte of error text as numeric error code
-
- Oct 03, 2017
-
-
Philipp Stephani authored
Fixes #352
-
- Aug 20, 2017
-
-
Petri Lehtinen authored
Fixes #344
-
Petri Lehtinen authored
-
- Aug 06, 2017
-
-
Petri Lehtinen authored
json_dump_file API returns success even when fclose fails
-
Sanjay Kumar authored
json_dump_file API returns success even when fclose fails (consider disk full case). API should check the return value of fclose before returning success to its caller. fwrite may not write anything into the file, it simply returns the number of bytes written into the buffer. When disk is full and fclose is called, it results in truncation of the file (resulting in zero sized file). Since, API is returning success, its caller can't take any remedial action on its failure.
-
- Jul 21, 2017
-
-
Petri Lehtinen authored
Docs - Fix typo
-
- Jul 16, 2017
-
-
최재원 authored
-
- Apr 19, 2017
-
-
Petri Lehtinen authored
Enable optional object members in json_pack()
-
Nathaniel McCallum authored
-
- Apr 13, 2017
-
-
Petri Lehtinen authored
-