199 Commits (870965e1eaa956324f7ed0825fd29ef584c20bc8)

Author SHA1 Message Date
  Marc 4a23d3413d
Fix "may be used uninitialized" Release build failure 5 years ago
  Eric Haszlakiewicz 6542d33cd1 Issue #641: Add a cast to void * to address some theoretically undefined printf behavior. 5 years ago
  Eric Haszlakiewicz 6465e74020 Use constants referring to the signed integer types when setting SSIZE_T_MAX. 5 years ago
  Eric Haszlakiewicz f23486a321 In the json_tokener_state_number case, explicitly adjust what "number" characters are allowed based on the exact micro-state that we're in, and check for invalid following characters in a different way, to allow a valid json_type_number object to be returned at the top level. 5 years ago
  Eric Haszlakiewicz e26a1195f4 Add json_object_array_shrink() (and array_list_shrink()) and use it in json_tokener to minimize the amount of memory used. This results in a 39%-50% reduction in memory use (peak RSS, peak heap usage) on the jc-bench benchmark and 9% shorter runtime. 5 years ago
  Eric Haszlakiewicz 0710c835a1 Reformat the json_object-split branch with clang-format 5 years ago
  Eric Haszlakiewicz 5ebfeaedc5 Drop the _delete field from struct json_object and call the type-specific delete functions directly from json_object_put. (Thanks @dota17 for the suggestion in PR #632!) 5 years ago
  Eric Haszlakiewicz 4c10712114 Drop the useless "char data[1]" from struct json_object. Fix a typo in a comment. 5 years ago
  Eric Haszlakiewicz 66d91fdf86 The split of json_object into type-specific sub-structures is now functionally complete. 5 years ago
  Eric Haszlakiewicz c4cc673071 More fixes for old MSVC builds. 5 years ago
  Eric Haszlakiewicz 0fc9d91277 Kick json_type_string out of struct json_object. 5 years ago
  Eric Haszlakiewicz 9ecb1222bd Kick json_type_int and json_type_double out of struct json_object. 5 years ago
  Eric Haszlakiewicz 0351bb55c8 Declare variables earlier, to appease Visual Studio 2010. 5 years ago
  Eric Haszlakiewicz d1f83bf5ea Kick json_type_boolean out of struct json_object. 5 years ago
  Eric Haszlakiewicz 5d89fc8a9d Add some backwards compat for Visual Studio 2013. 5 years ago
  Eric Haszlakiewicz 02b687b9a6 Kick json_type_array out of struct json_object; re-enable the test_deep_copy test. 5 years ago
  Eric Haszlakiewicz 853b4b5dee Start splitting struct json_object into multiple sub-types, as descibed at https://github.com/json-c/json-c/wiki/Proposal:-struct-json_object-split 5 years ago
  Tobias Stoeckmann 5385a566db Prevent truncation on custom double formatters. 5 years ago
  Eric Haszlakiewicz 0a3d22b9bb Revert part of PR#606 and use isnan/isinf again, but provide macro implementations of those in math_compat.h is needed, as it seems to be on AIX and IBM i systems. 5 years ago
  David McCann add7b13a9a Improved support for IBM operating systems 5 years ago
  Eric Haszlakiewicz ecb9354bb1 Re-do clang-format. 5 years ago
  Eric Haszlakiewicz 23ddcbd4da Make json_abort() internal to json_object.c 5 years ago
  Björn Esser d0dc3489dc
Enforce strict prototypes. 5 years ago
  Björn Esser 78cd37fb18
Clean trailing white-space. 5 years ago
  Eric Haszlakiewicz 0a070ef312 Fix one more assert("!invalid cint_type") to use json_abort(...) instead. 5 years ago
  dota17 8b162c4b89 clang-format the files 5 years ago
  dota17 c117d8a8a8 add the disabling formatting coments and adjust the partial code manuly 5 years ago
  Robert 56f81811c2
Changed order of calloc args to match stdlib 5 years ago
  dota17 3822177473 add test cases 5 years ago
  Jehan b15e7ba470 Fixes various Wreturn-type and Wimplicit-fallthrough errors on Mingw-w64 5 years ago
  Eric Haszlakiewicz b3296e778f Follow up the PR#542: improve assert() calls, simplify code in json_object_equal(). 5 years ago
  dota17 6359b79847 update json_object.c and testcase, delete json_object_uint_inc() 5 years ago
  dota17 9532f94fa4 modify partial functions and testcase, in order to support automatic conversion for int64/uint64 5 years ago
  dota17 c816de212b modify the json_object, replace c_int64/c_uint64 with struct{union{int64, uint64},...} 5 years ago
  dota17 3c3b5920f7 add uint64 data to json-c 5 years ago
  Eric Haszlakiewicz 518f337ce8 Issue #539: use a internal-only serializer function in 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(). 5 years ago
  Eric Haszlakiewicz ae13ca524a Issue #539: reset the serializer when json_object_set_double() is called and the current serializer is the one that json_object_new_double_s() used. 5 years ago
  dota17 010f33d460 add json_object_new_null 5 years ago
  Eric Haszlakiewicz 7f30afc6e5 Fix some Windows compile issues, add JSON_EXPORT's, fix bogus character escapes, define __func__ and omit unistd.h if needed. 5 years ago
  Eric Haszlakiewicz d0b87ee87b Add an explicit cast to double to squash a -Wimplicit-int-float-conversion warning. 6 years ago
  Eric Haszlakiewicz 485f2a02c7 Issue #486: append a missing ".0" to negative double values too. 6 years ago
  Eric Haszlakiewicz ee4691c9fb
Merge pull request #453 from darjankrijan/master 6 years ago
  Eric Haszlakiewicz 240627f260
Merge pull request #454 from ramiropolla/json_object_private 6 years ago
  Eric Haszlakiewicz 745cadc944
Merge pull request #461 from andy5995/issue_422 6 years ago
  andy5995 3b108935d0
json_object.h:document json_object_new_string_len() 6 years ago
  andy5995 506a32d4ab
json_object.c:set errno in json_object_get_double() 6 years ago
  Ramiro Polla 5bb5e2e8fc json_object_private: save 8 bytes in struct json_object in 64-bit architectures 6 years ago
  Darjan Krijan 3943960874 Removed spaces after \n for arrays as well 6 years ago
  Darjan Krijan e8cec5c9e4 Fixed misalignment in JSON string due to space after \n being printed when choosing JSON_C_TO_STRING_SPACED together with JSON_C_TO_STRING_PRETTY in json_object_array_to_json_string 6 years ago
  Eric Haszlakiewicz f8c632f579 Issue #407: fix incorrect casts in calls to ctype functions (isdigit and isspace) so we don't crash when asserts are enabled on certain platforms and characters > 128 are parsed. 7 years ago