Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | The split of json_object into type-specific sub-structures is now ↵ | Eric Haszlakiewicz | 2020-06-07 | 1 | -2/+1 |
| | | | | | | functionally complete. Remove all of the temporary defines, structures, old compat fuctions, extra fields, etc... that were needed during the conversion to a split set of json_object_* structures. | ||||
* | Start splitting struct json_object into multiple sub-types, as descibed at ↵ | Eric Haszlakiewicz | 2020-05-25 | 1 | -1/+2 |
| | | | | | | | | | | | | https://github.com/json-c/json-c/wiki/Proposal:-struct-json_object-split The current changes split out _only_ json_type_object, and thus have a number of hacks to allow the code to continue to build and work. Originally mentioned in issue #535. When complete, this will probably invalidate #552. This is likely to cause notable conflicts in any other significant un-merged changes, such as PR#620. | ||||
* | Enforce strict prototypes. | Björn Esser | 2020-04-13 | 1 | -1/+1 |
| | |||||
* | Clean trailing white-space. | Björn Esser | 2020-04-11 | 1 | -14/+14 |
| | |||||
* | Add includes and split off json_types.h to help ensure that headers can be ↵ | Eric Haszlakiewicz | 2020-04-06 | 1 | -52/+2 |
| | | | | included in any order. | ||||
* | clang-format the files | dota17 | 2020-04-03 | 1 | -128/+114 |
| | |||||
* | update json_object.c and testcase, delete json_object_uint_inc() | dota17 | 2020-02-28 | 1 | -14/+0 |
| | |||||
* | modify partial functions and testcase, in order to support automatic ↵ | dota17 | 2020-02-28 | 1 | -6/+0 |
| | | | | conversion for int64/uint64 | ||||
* | modify the json_object, replace c_int64/c_uint64 with struct{union{int64, ↵ | dota17 | 2020-02-27 | 1 | -3/+6 |
| | | | | uint64},...} | ||||
* | add uint64 data to json-c | dota17 | 2020-02-25 | 1 | -0/+49 |
| | |||||
* | Issue #539: use a internal-only serializer function in ↵ | Eric Haszlakiewicz | 2020-02-14 | 1 | -1/+5 |
| | | | | json_object_new_double_s() to avoid potential conflicts with user code that uses the json_object_userdata_to_json_string serializer. Also, document the serializer-resetting behavior of json_object_set_double(). | ||||
* | update comment | dota17 | 2020-01-22 | 1 | -2/+3 |
| | |||||
* | add json_object_new_null | dota17 | 2020-01-20 | 1 | -0/+5 |
| | |||||
* | Fix some Windows compile issues, add JSON_EXPORT's, fix bogus character ↵ | Eric Haszlakiewicz | 2019-11-23 | 1 | -4/+4 |
| | | | | escapes, define __func__ and omit unistd.h if needed. | ||||
* | Issue #488: use JSON_EXPORT on functions so they are properly exported on ↵ | Eric Haszlakiewicz | 2019-09-08 | 1 | -0/+2 |
| | | | | Windows. | ||||
* | remove [in] from params description | andy5995 | 2018-11-28 | 1 | -2/+2 |
| | | | | Keeping this would be inconsistent with the other documentation | ||||
* | json_object.h:document json_object_new_string_len() | andy5995 | 2018-11-27 | 1 | -1/+12 |
| | | | | | | I also added a couple trivial, but related, suggestions. closes #460 | ||||
* | Issue #419: document that NULL may be passed to json_object_put(). | Eric Haszlakiewicz | 2018-06-12 | 1 | -0/+1 |
| | |||||
* | Fixed typos | janczer | 2018-04-24 | 1 | -9/+9 |
| | |||||
* | Avoid uninitialized variable warnings | Jonathan Wiens | 2018-01-17 | 1 | -2/+2 |
| | | | | | Fix json_object_object_foreach to avoid uninitialized variable warnings using ANSI C or MSC. | ||||
* | Remove the TRUE and FALSE defines. | Eric Haszlakiewicz | 2017-12-23 | 1 | -11/+5 |
| | |||||
* | Fix non-GNUC define for JSON_C_CONST_FUNCTION | Rikard Falkeborn | 2017-12-13 | 1 | -1/+1 |
| | |||||
* | Apply gcc's "const" attribute to the json_c_object_sizeof() function as an ↵ | Eric Haszlakiewicz | 2017-12-12 | 1 | -1/+7 |
| | | | | optimizer hint. Also, rename that function from json_object_sizeof(). | ||||
* | json_object: Add size_t json_object_sizeof() | Björn Esser | 2017-12-11 | 1 | -0/+5 |
| | |||||
* | Undeprecate the array_list, lh_table and printbuf typedefs, but move each to ↵ | Eric Haszlakiewicz | 2017-12-06 | 1 | -15/+1 |
| | | | | the corresponding header files. | ||||
* | Squash doxygen warnings, and make a few slight improvements to the docs. | Eric Haszlakiewicz | 2017-12-06 | 1 | -1/+8 |
| | |||||
* | Add a brief overview of each file to the docs. | Eric Haszlakiewicz | 2017-12-06 | 1 | -0/+4 |
| | |||||
* | Deprecated a few typedefs, add docs on json_object_iter, move ↵ | Eric Haszlakiewicz | 2017-12-05 | 1 | -8/+17 |
| | | | | json_number_chars and json_hex-chars to json_object_private.h. | ||||
* | Make sure to include the "*" on function pointer arguments to avoid a ↵ | Eric Haszlakiewicz | 2017-12-04 | 1 | -1/+1 |
| | | | | warnings from VS2015. See also PR#384. | ||||
* | Fix a VS 2015 compiler warning. | ssrlive | 2017-12-04 | 1 | -1/+1 |
| | | | In VS 2015, the warning text is "warning C4550: expression evaluates to a function which is missing an argument list". | ||||
* | In json_object_deep_copy(), copy over _userdata, at least for ↵ | Eric Haszlakiewicz | 2017-11-29 | 1 | -2/+31 |
| | | | | json_type_string's with the default serializer set, and provide a way for people using custom serializers to provide a custom shallow_copy method. | ||||
* | Merge branch 'json_deep_copy' of https://github.com/commodo/json-c into ↵ | Eric Haszlakiewicz | 2017-11-29 | 1 | -0/+18 |
|\ | | | | | | | commodo-json_deep_copy | ||||
| * | json_object: implement json_object_deep_copy() | Alexandru Ardelean | 2017-11-27 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | Because doing `json_tokener_parse(json_object_get_string(src))` feels sloppy, dirty, and makes me want to cry at night sometimes. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> | ||||
* | | Rename json_object_add_int() to json_object_int_inc() and eliminate the ↵ | Eric Haszlakiewicz | 2017-11-27 | 1 | -25/+9 |
|/ | | | | "int64" variant since we store 64-bit values internally anyway. | ||||
* | Merge pull request #363 from jvijtiuk/integer_addition | Eric Haszlakiewicz | 2017-11-27 | 1 | -0/+31 |
|\ | | | | | Issue #338, add json_object_add_int functions | ||||
| * | Add json_object_add_int functions | Juraj Vijtiuk | 2017-09-14 | 1 | -0/+31 |
| | | |||||
* | | Issue #370: work around Clang-on-windows oddities by rearranging ifdefs. | Eric Haszlakiewicz | 2017-10-22 | 1 | -2/+2 |
|/ | |||||
* | Issue#353: attempt to fix or ignore a few -Wdocumentation messages from Clang. | Eric Haszlakiewicz | 2017-09-07 | 1 | -2/+19 |
| | |||||
* | Merge pull request #319 from Dashlane/visual-studio-build | Eric Haszlakiewicz | 2017-07-08 | 1 | -48/+54 |
|\ | | | | | Windows: Fix dynamic library build with Visual Studio | ||||
| * | Fix library build with Visual Studio | David Henot | 2017-04-26 | 1 | -48/+54 |
| | | |||||
* | | Add a json_c_set_serialization_double_format() function to set the ↵ | Eric Haszlakiewicz | 2017-06-18 | 1 | -0/+31 |
|/ | | | | *library-wide* format for how doubles are written to a serialized JSON output. | ||||
* | string set and tests | Stoian Ivanov | 2016-10-07 | 1 | -0/+20 |
| | |||||
* | some basic set | Stoian Ivanov | 2016-10-05 | 1 | -3/+43 |
| | |||||
* | json_object_set_boolean for upstream style check | Stoian Ivanov | 2016-09-21 | 1 | -0/+13 |
| | |||||
* | Issue #263: add const so the prototype for json_object_object_add_ex() ↵ | Eric Haszlakiewicz | 2016-08-24 | 1 | -2/+4 |
| | | | | matches the definition. | ||||
* | json_object_object_add_ex() should have shared code with ↵ | Eric Haszlakiewicz | 2016-08-20 | 1 | -1/+1 |
| | | | | | | json_object_object_add(), and been changed to return int at the same time the latter was. Do that now. Also correct a couple of calls to _to_json_string to check the return value. | ||||
* | Add method 'json_object_to_json_string_length' | jobol | 2016-07-27 | 1 | -0/+10 |
| | | | | | | | | | | This new method allows to also get the length of the generated string. Fix #165 Change-Id: Iea91404027f143ca3d29a4c58d7c07ae53556110 Signed-off-by: José Bollo <jose.bollo@iot.bzh> | ||||
* | Issue #236: Add -Wcast-qual and fix casts to retain constness. | Eric Haszlakiewicz | 2016-06-11 | 1 | -5/+7 |
| | | | | | To better distinguish between entry->k and entry->v being const within linkhash, but non-const outside, add lh_entry_v() and lh_entry_k() accessors. Make lh_entry->k const. | ||||
* | Merge pull request #233 from NeoRaider/size_t3 | Eric Haszlakiewicz | 2016-06-06 | 1 | -0/+1 |
|\ | | | | | Include stddef.h in json_object.h | ||||
| * | Include stddef.h in json_object.h | Matthias Schiffer | 2016-05-29 | 1 | -0/+1 |
| | | | | | | | | It is needed for size_t. |