2003e427ac
Add a copy of the json-c-0.10 docs in a form that should be browsable on github.
Eric Haszlakiewicz2012-09-09 14:58:17 -05:00
4b1a0668a8
Update the set_serializer test to match the actual output.
Eric Haszlakiewicz2012-09-09 13:53:12 -05:00
38f421a2e7
Add a json_set_serializer() function to allow the string output of a json_object to be customized.
Eric Haszlakiewicz2012-09-02 15:21:56 -05:00
8ce53f9d1e
Note the rename in the ChangeLog, and update the instructions in the README file.
Eric Haszlakiewicz2012-07-29 18:43:55 -05:00
2f2180b70d
Take a guess as to the rename changes changes needed to the Android part of the build. I think this should work, but I can't test it.
Eric Haszlakiewicz2012-07-29 18:29:38 -05:00
1f9d199522
Re-add the "json" pkg-config file as a compatibility shim. Also rename the json-c-uninstalled.pc file.
Eric Haszlakiewicz2012-07-29 18:25:09 -05:00
9f16e25a3e
Bump the version of the new library since programs will need to be re-linked to use it.
Eric Haszlakiewicz2012-07-29 18:05:34 -05:00
943b7a4de7
Add a compatibility symlink json->json-c in the include directory.
Eric Haszlakiewicz2012-07-29 18:05:08 -05:00
075b783631
Add a --disable-oldname-compat option to configure to turn off the creation of the libjson.so library, and only include libjson-c.so
Eric Haszlakiewicz2012-07-29 17:48:22 -05:00
082419edf9
Fix the Libs line in json-uninstalled.pc to use -ljson-c
Eric Haszlakiewicz2012-07-29 15:09:59 -05:00
b98aa6eaa3
Create an additional libjson.so library that simply links against libjson-c, but emits a warning encouraging the use of the new library.
Eric Haszlakiewicz2012-07-29 14:59:01 -05:00
eb37094aa6
Check for the sys/cdefs.h header which on some systems defines the __warn_references macro.
Eric Haszlakiewicz2012-07-29 14:57:59 -05:00
ba1c3810cb
Remove test_parse from the top level directory. (accidentally re-introduced with the last merge)
Eric Haszlakiewicz2012-07-29 14:08:26 -05:00
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.
Eric Haszlakiewicz2012-07-29 12:31:07 -05:00
8fcfeb63ec
Default autogen.sh to not running configure, unless some command line options are specified.
Eric Haszlakiewicz2012-07-29 12:18:37 -05:00
77c6239465
Initialize errno before calling sscanf in json_parse_int64() so parsing valid numbers after parsing an out of range number works.
Eric Haszlakiewicz2012-07-29 12:13:54 -05:00
6988f53fcb
Rewrite json_object_object_add to replace just the value if the key already exists so keys remain valid. This is particularly useful when replacing values in a loop, since it allows the key used by json_object_object_foreach to continue to be used.
Eric Haszlakiewicz2012-07-24 23:27:41 -05:00
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.
Mateusz Loskot2012-06-19 20:15:44 +01:00
837d685d78
Use "nodoc", not "doc", for the name of the tarball w/o docs.
Eric Haszlakiewicz2012-05-30 23:03:34 -05:00
271c53ebdd
Missing explicit casts from void* to specific pointers required. Added #define strcasecmp for Visual C++.
Mateusz Loskot2012-05-22 23:51:44 +01:00
a6f39a3c0c
Replaced #if HAVE_X with #ifdef HAVE_X as the former test is troublemaker with #define HAVE_X where #define HAVE_X 1|0 is meant.
Mateusz Loskot2012-05-21 23:22:36 +01:00
b6ff1c2f71
array_list_expand_internal needs length, not index. (The current implementation will fail when adding index 65.)
OBI-12012-05-09 13:52:17 +03:00
0cc1db6459
Change the format used for sprintbuf (but not scanf) to use %f instead of %lf because the "l" is unnecessary and some compilers behave differently with it present (e.g. MinGW). Thanks for Mateusz Loskot for the fix.
Eric Haszlakiewicz2012-04-29 11:04:33 -05:00
86bf051fd2
Add the 0.10 release doxygen-generated docs to source control.
Eric Haszlakiewicz2012-04-28 15:54:56 -05:00
c75ad201dd
Add automake/autoconf generated files for the 0.10 release.
Eric Haszlakiewicz2012-04-28 15:51:43 -05:00
31faa49bd8
Ignore the new test1Formatted and test2Formatted executables.
Eric Haszlakiewicz2012-04-28 14:17:09 -05:00
4c7f38eb9b
Extend test1 and test2 to run using json_object_to_json_string_ext() based on an additional command line parameter. Extend the run_output_test() function so we actually can pass command line parameters and so we can support different output files for the same test executable. Also provide some hints about what to do if a test fails (i.e. set VERBOSE=1).
Eric Haszlakiewicz2012-04-28 14:14:26 -05:00
3fcffe1bb0
Add a json_object_to_json_string_ext() function to allow the formatting of output to be selected. There are now three options: JSON_C_TO_STRING_SPACED, JSON_C_TO_STRING_PLAIN and JSON_C_TO_STRING_PRETTY. This also add a json_object_to_file_ext() that takes the same flags. Existing output of json_object_to_json_string() is unchanged, and uses JSON_C_TO_STRING_SPACED. Thanks fo Grant Edwards for the initial patches.
Eric Haszlakiewicz2012-04-28 13:26:09 -05:00
4e000a65e6
Since we already use a local json_bool type, replace any stdbool.h usage with that, since not all environments actually have a stdbool.h to use.
Eric Haszlakiewicz2012-04-24 21:54:07 -05:00
b80772a0f5
Use a different variable when referring to the json.la file, since the original lib_LTLIBRARIES means something special to automake.
Eric Haszlakiewicz2012-04-22 10:48:30 -05:00
30dd367c0a
Modify install names for library and include files
Keith Derrick2012-03-30 12:28:32 -07:00
21d3706192
Added explanatory notes to documentation.
Keith Derrick2012-04-05 19:33:09 -07:00
e0fa94ba31
Fix some bugs with how buffer sizes were being calcuated in printbuf_memset and an off-by-one error in printbuf_memappend.
Eric Haszlakiewicz2012-04-03 14:54:25 -05:00
7f3298da85
Remove the "#undef PRINTBUF_DEBUG" from printbuf.h so it can be more easily turned on in the Makefile.
Eric Haszlakiewicz2012-04-03 14:48:15 -05:00
8310d3634c
Add a printbuf_memset() function to provide an effecient way to set and append things like whitespace indentation.
Eric Haszlakiewicz2012-04-02 15:39:55 -05:00
0d79b53456
Fix some bugs with how buffer sizes were being calcuated in printbuf_memset and an off-by-one error in printbuf_memappend.
Eric Haszlakiewicz2012-04-03 14:54:25 -05:00
61a154e58b
Remove the "#undef PRINTBUF_DEBUG" from printbuf.h so it can be more easily turned on in the Makefile.
Eric Haszlakiewicz2012-04-03 14:48:15 -05:00
2d48543f2e
Add a printbuf_memset() function to provide an effecient way to set and append things like whitespace indentation.
Eric Haszlakiewicz2012-04-02 15:39:55 -05:00
2b5929bb13
Direct people to send bug reports to the json-c google group.
Eric Haszlakiewicz2012-03-31 23:17:31 -05:00
a7bd85caba
Remove a few more things in the distclean target to get rid of *all* generated files.
Eric Haszlakiewicz2012-03-31 23:17:00 -05:00
f30a9ace77
Fix a bug in json_tokener_parse_ex when re-using the same tokener to parse multiple objects. Now, json_tokener_reset() does not need to be called after a valid object is parsed.
Eric Haszlakiewicz2012-03-31 22:53:43 -05:00
30c6c4a1be
Split the json_tokener_parse tests off from test1 into their own test and add several more cases to check various incremental parsing situations.
Eric Haszlakiewicz2012-03-31 22:51:39 -05:00
23d0da5870
Mention json_type_to_name() in the docs for json_object_get_type().
Eric Haszlakiewicz2012-03-31 22:47:47 -05:00
7c4a964002
Define a LH_LOAD_FACTOR constant and note the range that it can be set to. Change the resize check from "count > size" to "count >= size" to avoid a potential infinite loop with high load factors and a full hash table.
Eric Haszlakiewicz2012-03-31 17:33:58 -05:00
e6668b1406
Adjust json_object_is_type and json_object_get_type so they return json_type_null for NULL objects.
Eric Haszlakiewicz2012-03-31 13:47:28 -05:00
9885b30c0e
Perform better error checking in json_tokener_parse_verbose and rewrite json_tokener_parse to use that instead of json_tokener_parse_ex. Fix a typo in the string represenations of the json_tokener_error_depth error (s/to deep/too deep/)
Eric Haszlakiewicz2012-03-31 12:52:59 -05:00
781798ccdf
Direct people to send bug reports to the json-c google group.
Eric Haszlakiewicz2012-03-31 23:17:31 -05:00
fbd207bd6b
Remove a few more things in the distclean target to get rid of *all* generated files.
Eric Haszlakiewicz2012-03-31 23:17:00 -05:00
d809fa60c5
Fix a bug in json_tokener_parse_ex when re-using the same tokener to parse multiple objects. Now, json_tokener_reset() does not need to be called after a valid object is parsed.
Eric Haszlakiewicz2012-03-31 22:53:43 -05:00
c5c623a546
Split the json_tokener_parse tests off from test1 into their own test and add several more cases to check various incremental parsing situations.
Eric Haszlakiewicz2012-03-31 22:51:39 -05:00
6ff0817bac
Mention json_type_to_name() in the docs for json_object_get_type().
Eric Haszlakiewicz2012-03-31 22:47:47 -05:00
64c0ca3690
Define a LH_LOAD_FACTOR constant and note the range that it can be set to. Change the resize check from "count > size" to "count >= size" to avoid a potential infinite loop with high load factors and a full hash table.
Eric Haszlakiewicz2012-03-31 17:33:58 -05:00
aef439a175
Adjust json_object_is_type and json_object_get_type so they return json_type_null for NULL objects.
Eric Haszlakiewicz2012-03-31 13:47:28 -05:00
3620cba6d0
Perform better error checking in json_tokener_parse_verbose and rewrite json_tokener_parse to use that instead of json_tokener_parse_ex. Fix a typo in the string represenations of the json_tokener_error_depth error (s/to deep/too deep/)
Eric Haszlakiewicz2012-03-31 12:52:59 -05:00