223 Commits (254b5abef8217a92032f9ad971b8477966f72bbd)

Author SHA1 Message Date
  Kurt Schwehr ef7b08ce7f Clamp double to int32 when narrowing in json_object_get_int. 8 years ago
  Alexandru Ardelean fb72160caf build: make `strerror()` override-able 8 years ago
  Eric Haszlakiewicz b64402ede2 Move a variable declaration to the start of the block to work better with older compilers. 8 years ago
  Eric Haszlakiewicz f7a44ad101 Add extra casts to void * to squash some warning on certain systems (e.g. CentOS w/ gcc 4.1.2). 8 years ago
  Eric Haszlakiewicz 7b7a76e161 Fix bad usage of strncat introduces in 1a94c70. Pointed out by @rouault in PR #331. 8 years ago
  Eric Haszlakiewicz 55ecae3e58 Eliminate static qualifiers on a couple local variables that were causing thread safety issues. Suggested by @rouault in PR #331. 8 years ago
  Eric Haszlakiewicz 5a99e527ff Reformat json_object_double_to_json_string_format() to have consistent spacing. 8 years ago
  Eric Haszlakiewicz 1a94c70336 Add a json_c_set_serialization_double_format() function to set the *library-wide* format for how doubles are written to a serialized JSON output. 8 years ago
  Even Rouault 2c2deb87f8 Fix stack buffer overflow in json_object_double_to_json_string_format() 8 years ago
  Jason Li 0f81ecf5f4 Fix error C3688 when compiling on Visual Studio 2015: invalid literal suffix 'PRId64'; literal operator or literal operator template 'operator ""PRId64' not found 8 years ago
  marxin 014924ba89 Add FALLTHRU comment to handle GCC7 warnings. 8 years ago
  Quentin Young f6f852fd93 Restore sprintbuf(), add macro for string literals 8 years ago
  Quentin Young 9ff0f4987f Improve json_object -> string performance 8 years ago
  Jan Gerhards ca7a1973e2 bugfix: floating point representaion without fractional part 8 years ago
  Alexandru Ardelean 8cb86a583a strdup_compat.h: re-spin this compat header ; use math_compat.h as template 9 years ago
  Emmanuele Bassi 7601f20d70 Revert "compat/strdup.h: move common compat check for strdup() to own file" 9 years ago
  Alexandru Ardelean aaba8c1080 compat/strdup.h: move common compat check for strdup() to own file 9 years ago
  Eric Haszlakiewicz d4899bd4d5 Handle NULL objects in json_object_get_userdata() by returning NULL, but abort in json_object_set_userdata() since we can't actually do anything with the userdata. 9 years ago
  Eric Haszlakiewicz f8132f932d Issue #280: add a few assert() calls to ensure objects are of the appropriate type. 9 years ago
  Eric Haszlakiewicz 818156f6f7 Merge pull request #277 from ALLTERCO/json_object_set_xxx 9 years ago
  Stoian Ivanov be63ba99ca try restore windows automated builds 9 years ago
  Stoian Ivanov a26305d428 fix compiler warning for int sizes 9 years ago
  Stoian Ivanov e518b22b72 string set and tests 9 years ago
  Stoian Ivanov 05f025c075 some basic set 9 years ago
  Alexey Konovalov b2fbf93df0 fixed wrong object name in json_object_all_values_equal 9 years ago
  Stoian Ivanov fae09456ae json_object_set_boolean for upstream style check 9 years ago
  Eric Haszlakiewicz 5fccfed4f4 Issue #260: add a check to prevent trivial loops in the object tree, even though it is up to the callers to avoid doing so in more complex cases. 9 years ago
  Eric Haszlakiewicz c4d060bf80 json_object_object_add_ex() should have shared code with json_object_object_add(), and been changed to return int at the same time the latter was. Do that now. 9 years ago
  Eric Haszlakiewicz 4d62de3898 Revert bogus change to json_object_get() made in f40b08d8 that caused it to always return NULL. (Issue #259) 9 years ago
  Eric Haszlakiewicz 0ad87649d4 Merge pull request #255 from RyDroid/minor-c2 9 years ago
  Nicola Spanti (RyDroid) f40b08d8f0 Minor changes in C source code 9 years ago
  jobol 344009bf26 Add method 'json_object_to_json_string_length' 9 years ago
  Eric Haszlakiewicz 595891729e Issue #236: Add -Wcast-qual and fix casts to retain constness. 9 years ago
  Matthias Schiffer f87e378d48
Add public API to get and set userdata 9 years ago
  Matthias Schiffer c2b004ba0e
Make default double serializer ignore userdata again 9 years ago
  Eric Haszlakiewicz 996be85843 Fix a few places that needed adjustment for the size_t changes, including updating the range checks to use a calculated SIZE_T_MAX. 9 years ago
  Eric Haszlakiewicz 9a2915ce66 Merge branch 'fixes-for-upstream' of https://github.com/doctaweeks/json-c into doctaweeks-fixes-for-upstream 9 years ago
  Jan-Philipp Litza 21dc5dc92b Export json_object_double_to_json_string() and use custom format string 9 years ago
  Eric Haszlakiewicz 1fb87cd196 Merge branch 'master' of https://github.com/Protovision/json-c into Protovision-master 9 years ago
  Eric Haszlakiewicz 82bdbdba24 Merge pull request #219 from rouault/low_heap_robustness_fixes 9 years ago
  Eric Haszlakiewicz 4e0c8b55fb Merge pull request #220 from hschaa/master 9 years ago
  chenha0 dffdee966f Fix issue #221: JSON_C_TO_STRING_NOSLASHESCAPE works incorrectly 9 years ago
  Helmut Schaa 00e475c434 Add utility function for comparing json_objects 9 years ago
  Even Rouault 77a4276a8c Fix various potential null ptr deref and int32 overflows 9 years ago
  Eric Haszlakiewicz 537f8bcbdb Add const qualifiers to several functions that don't modify the json_object. 9 years ago
  Eric Haszlakiewicz 980cdd61be Merge commit '2be921d88376e78f84d79aafa6db2714da804e59' 9 years ago
  Eric Haszlakiewicz 316da85818 Fix issue #201: add a JSON_C_TO_STRING_NOSLASHESCAPE flag to turn off escaping of forward slashes. 9 years ago
  Emiel Bruijntjes 7e98ed93f4 subtract first, then retrieve value 9 years ago
  Emiel Bruijntjes 9d85367679 added tabs instead of spaces to be compatible with rest of code 9 years ago
  Emiel Bruijntjes 827f0fd8ef update indentation 9 years ago