159 Commits (485f2a02c79da8a7b31e972f0c652f06094bcfb9)

Author SHA1 Message Date
  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
  Eric Haszlakiewicz c652b6ad29 PR#394: fix breakage with VS build. 7 years ago
  Eric Haszlakiewicz d5da847f51 PR#394: don't always append the ".0" if the double value rounds to zero because some custom formats *will* include it (e.g. %.2f). 7 years ago
  Eric Haszlakiewicz 0992aac61f Remove the TRUE and FALSE defines. 7 years ago
  Björn Esser c233f5c05e
json_object_private: Use unsigned 32-bit integer type for refcount 7 years ago
  Björn Esser 9aca3b6a08
json_object: Avoid invalid free (and thus a segfault) when ref_count gets < 0 7 years ago
  Eric Haszlakiewicz 5b6d62259a Apply gcc's "const" attribute to the json_c_object_sizeof() function as an optimizer hint. Also, rename that function from json_object_sizeof(). 7 years ago
  Björn Esser c123a1c21b
json_object: Add size_t json_object_sizeof() 7 years ago
  Eric Haszlakiewicz aedd36ac8b Make sure to include the "*" on function pointer arguments to avoid a warnings from VS2015. See also PR#384. 7 years ago
  ssrlive 2643658b6f
Update json_object.c 7 years ago
  Eric Haszlakiewicz 5dae561d33 In json_object_deep_copy(), copy over _userdata, at least for 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. 7 years ago
  Eric Haszlakiewicz 437716c5b4 Rename _set_last_err() to _json_c_set_last_err(). 7 years ago
  Eric Haszlakiewicz 4dd92180c6 Merge branch 'json_deep_copy' of https://github.com/commodo/json-c into commodo-json_deep_copy 7 years ago
  Eric Haszlakiewicz 3628f16dd6 Rename json_object_add_int() to json_object_int_inc() and eliminate the "int64" variant since we store 64-bit values internally anyway. 7 years ago
  Alexandru Ardelean bf80d5ad0e json_object: implement json_object_deep_copy() 8 years ago
  Juraj Vijtiuk 1110e84cce Add json_object_add_int functions 8 years ago
  Kurt Schwehr d9879c2533 Fix double to int cast overflow in json_object_get_int64. 8 years ago
  Jason King e3fabe9a44 Add long long 64-bit check 8 years ago
  Haffon b301f4ea01 rollback api to 0.12 8 years ago
  Haffon 86a3a6475f Merge pull request #2 from json-c/master 8 years ago
  Eric Haszlakiewicz 548d000891 Undo a bit of 2d1da5ab: handle per-thread formats for double serialization, even if --enable-threading wasn't specified. 8 years ago
  Eric Haszlakiewicz 2d1da5ab13 Add a --enable-threading configure option, and only use the (slower) __sync_add_and_fetch()/__sync_sub_and_fetch() function when it is specified. 8 years ago
  Eric Haszlakiewicz 5b11e9adff Explicitly check for GCC's atomic functions instead of depending on the __GNUC__ define. 8 years ago
  Eric Haszlakiewicz ab0d4dbc69 Merge branch 'pull-211' 8 years ago
  Haffon 95e174e2fb Merge pull request #1 from json-c/master 8 years ago
  Eric Haszlakiewicz 81f6edbfd5 PR#331: for Visual Studio, use a snprintf/vsnprintf wrapper that ensures the string is terminated. 8 years ago
  Haffon 3141c3976b 1.make it can been compiled with Visual Studio 2010 8 years ago
  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