216 Commits (4298431150df9a83390a14006217c230e684994b)

Author SHA1 Message Date
  Eric Haszlakiewicz f6b27cbb6c Make it safe to delete keys while iterating with the json_object_object_foreach macro. 13 years ago
  Eric Haszlakiewicz c3d1d597ab Fix a memory leak in test1 with respect to how json_object_object_del was used. 13 years ago
  Eric Haszlakiewicz c3068bfd09 Reformat the test sources. No functional change. 13 years ago
  Eric Haszlakiewicz 4b1a0668a8 Update the set_serializer test to match the actual output. 13 years ago
  Eric Haszlakiewicz 38f421a2e7 Add a json_set_serializer() function to allow the string output of a json_object to be customized. 13 years ago
  Eric Haszlakiewicz 92f31bd99a Handle the \f escape sequence (the two characters: backslash followed by an f, not a literal formfeed) and extend the test_parse test to check all valid escape sequences. 13 years ago
  Eric Haszlakiewicz 77c6239465 Initialize errno before calling sscanf in json_parse_int64() so parsing valid numbers after parsing an out of range number works. 13 years ago
  Eric Haszlakiewicz 6988f53fcb Rewrite json_object_object_add to replace just the value if the key already exists so keys remain valid. 13 years ago
  Mateusz Loskot 984303dfe5 Added a bunch of missing HAVE_* defines tested with ./configure script to fix compilation on Linux with GCC 4.7.1. The issue likely caused by my previous commits related to Visual C++ port of the code. 13 years ago
  Mateusz Loskot 271c53ebdd Missing explicit casts from void* to specific pointers required. Added #define strcasecmp for Visual C++. 13 years ago
  Eric Haszlakiewicz 4c7f38eb9b Extend test1 and test2 to run using json_object_to_json_string_ext() based on an additional command line parameter. 13 years ago
  Eric Haszlakiewicz 3d8817978c Actually save the expected output for the test_printbuf test so it passes. 13 years ago
  Eric Haszlakiewicz e5c1e87f05 Add a test for the printbuf functions. 13 years ago
  Eric Haszlakiewicz b80772a0f5 Use a different variable when referring to the json.la file, since the original lib_LTLIBRARIES means something special to automake. 13 years ago
  Eric Haszlakiewicz c1b8891a13 Move the rest of the tests into the tests subdirectory. 13 years ago
  Eric Haszlakiewicz 1e89ba68af Create a tests subdirectory and move one of the test to there. 13 years ago