221 Commits (9dde931a1c3aa4fd9ffc0be910ee03dceda156f8)

Author SHA1 Message Date
  Eric Haszlakiewicz 11ab365324 Deprecated a few typedefs, add docs on json_object_iter, move json_number_chars and json_hex-chars to json_object_private.h. 7 years ago
  Eric Haszlakiewicz a47eafe868 Cast to int64_t instead of long in test_int_add to fix the test on 32-bit platforms. 7 years ago
  Eric Haszlakiewicz e00a07b885 Clean up *.vg.out files too to "make distcheck" works. 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 96efeadd6e Always build the json_object_deep_copy() code, but conditionalize running it on a --benchmark command line option. 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 1eab22f0da tests: add test_deep_copy test 8 years ago
  Eric Haszlakiewicz 91662a5b69
Merge pull request #363 from jvijtiuk/integer_addition 7 years ago
  Eric Haszlakiewicz 9c9529f798 Update test_parse.expected to match the code. 7 years ago
  Eric Haszlakiewicz 31a6c2fac8 Add a few more tests to the partial parse to cover bytes after "Infinity". 7 years ago
  Eric Haszlakiewicz ba11d334db Save proper expected output for test_parse from the previous commit. 7 years ago
  Eric Haszlakiewicz 48f7e389fb Fix parsing of "-Infinity" when the "-" and "Infinity" are split across multiple calls. 7 years ago
  Eric Haszlakiewicz 4d1e0b4409 Issue #371: fix parsing of "-Infinity" (although in a somewhat different location than PR#372 used), and add a case to test_parse to check for this. 7 years ago
  Eric Haszlakiewicz 2a22858fe7 Add a few extra cases to test_parse to show how trailing bytes are handled, especially for parsing "Infinity". 7 years ago
  Eric Haszlakiewicz b8738dd623 Rewrite test_basic_parse() to factor out a single_basic_parse() to avoid lots of duplicate boiler plate code. 7 years ago
  Eric Haszlakiewicz e424af32b7 Fix definition of NELEM in the tests. 8 years ago
  Juraj Vijtiuk 1110e84cce Add json_object_add_int functions 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
  Eric Haszlakiewicz fcad0ec015 PR #336: since we can't use function overriding (due to problems with it on 8 years ago
  Eric Haszlakiewicz 40317f079e Allow USE_VALGRIND to be set to anything starting with 0, N or n to disable valgrind during tests. 8 years ago
  Alexandru Ardelean fb72160caf build: make `strerror()` override-able 8 years ago
  Alexandru Ardelean 7b9432d564 tests: fix leak in `test_util_file` ; found by cppcheck 8 years ago
  Alexandru Ardelean 9d47ae824c tests: compress test_utile_file with test_basic 8 years ago
  Eric Haszlakiewicz 33db761551 Updated expected test1 output which should have been included in commit fd9b3b2. 8 years ago
  Eric Haszlakiewicz fd9b3b2260 Issue #332: fix a long-standing bug in array_list_put_idx() where it would attempt to free previously free'd entries due to not checking the current array length. 8 years ago
  Alexandru Ardelean 73636c2ed0 tests: symlink basic tests to a single file that has the common code 8 years ago
  Eric Haszlakiewicz e8e574fbe4 Issue #161: add a json_object_to_fd() function. 8 years ago
  Eric Haszlakiewicz 23e064ad29 Fix test_double_serializer expected output. 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
  Eric Haszlakiewicz 8c86207258 Add a few more cases to test_parse to provide some examples of how parsing works; should help address the questions raised in Issue #302. 8 years ago
  Eric Haszlakiewicz 3948fcad2d Issue #300: Cast size_t values to int instead of unsigned long long to work around broken behavior of MinGW. 8 years ago
  Eric Haszlakiewicz bad6c9a427 Issue #300: Some platforms, such as MinGW, don't have ETXTBSY and ENOTBLK, so skip those there. 8 years ago
  Eric Haszlakiewicz 9a64fd7d55 Issue #300: Use %p instead of %lx in test_util_file since some platforms' pointers are larger than "unsigned long". 8 years ago
  Eric Haszlakiewicz 3fab117e4e Merge pull request #299 from qlyoung/perf-improvements 8 years ago
  Quentin Young f6f852fd93 Restore sprintbuf(), add macro for string literals 8 years ago
  Eric Haszlakiewicz 75825a9f01 Use strdup instead of strndup in test1.c, there's no need for the latter because json_object_to_json_string_length() will always return a properly sized string. 8 years ago
  Quentin Young 9ff0f4987f Improve json_object -> string performance 8 years ago
  Eric Haszlakiewicz 0a010a59eb Change a memcpy that should be a memmove within json_pointer_get, and fix memory leaks in of one the json_pointer tests. 8 years ago
  Jan Gerhards 61db4cfac5 testbench: add test for floating point representation 8 years ago
  Jan Gerhards ca7a1973e2 bugfix: floating point representaion without fractional part 8 years ago
  Alexandru Ardelean c0da680f13 test_json_pointer: update test with a few printf variants 9 years ago
  Alexandru Ardelean ee7fc26de1 tests: add test_json_pointer test 9 years ago
  Alexandru Ardelean 2fbdee19da tests/strerror_override.c: fix compilation error 9 years ago
  Eric Haszlakiewicz 33339ae595 Use json_visit() to clear the serializer data set when parsing so the output from test_parse reflects the actual values parsed. 9 years ago
  Eric Haszlakiewicz ecdc14f535 Add a json_c_visit() function to provide a way to iterate over a tree of json-c objects. 9 years ago
  Eric Haszlakiewicz 7e12b9f47c Fix broken key-order test in test_compare. 9 years ago
  Eric Haszlakiewicz 818156f6f7 Merge pull request #277 from ALLTERCO/json_object_set_xxx 9 years ago
  Stoian Ivanov e518b22b72 string set and tests 9 years ago
  Stoian Ivanov 9a313f767f gitignore test; add double value set checks in test 9 years ago