Commit Graph

  • 2f9091f559 Add json_tokener_get_error() and json_tokener_error_desc() to better encapsulate the process of retrieving errors while parsing. Add documentation for the json_tokener_parse_ex() function. Eric Haszlakiewicz 2012-02-22 08:24:40 -06:00
  • b21b137805 Include json_inttypes.h in json_object.h since we use types like int32_t in the API and some systems need that header to compile. As part of this create a public json_config.h with a custom define to decide whether to include inttypes.h to avoid conflicting with other projects config.h header. Eric Haszlakiewicz 2012-02-15 20:44:54 -06:00
  • 15db9372f3 Merge branch 'master' of https://github.com/json-c/json-c Eric Haszlakiewicz 2012-02-15 19:38:07 -06:00
  • 44f0f62252 Issue#10: add some const qualifiers so test1 compiles again. Eric Haszlakiewicz 2012-02-15 19:37:04 -06:00
  • 0bc84fcaaf Merge pull request #12 from jameinel/win32-project Eric Haszlakiewicz 2012-02-15 17:11:47 -08:00
  • 6a231e4b41 Some updates to make the code compatible with VC 9 (2008) John Arbash Meinel 2012-02-01 09:27:49 +01:00
  • faa535386a Merge pull request #11 from deweerdt/master Eric Haszlakiewicz 2012-01-29 15:49:48 -08:00
  • db050901fa json_tokener_parse(): avoid possible NULL deref Frederik Deweerdt 2012-01-18 17:01:19 -08:00
  • 393085a4ba Merge pull request #7 from federicoculloca/master Eric Haszlakiewicz 2011-12-09 14:42:41 -08:00
  • fc3d2114a6 Merge pull request #8 from mstorsjo/mingw Eric Haszlakiewicz 2011-12-09 14:41:40 -08:00
  • a577ba376f Add -no-undefined to the libtool flags Martin Storsjo 2011-11-25 23:43:25 +02:00
  • 7ec34c9b39 Added capitalized charaters to json_hex_chars Federico Culloca 2011-10-30 12:13:15 +01:00
  • fbae8ad0ad Merge pull request #4 from deweerdt/master Eric Haszlakiewicz 2011-10-12 17:42:36 -07:00
  • c43871c866 Add new json_object_array_sort function Frederik Deweerdt 2011-10-07 21:07:18 +02:00
  • a8ffbe97b0 Add an initial (incomplete) release checklist. Eric Haszlakiewicz 2011-06-14 10:01:27 -05:00
  • 06e52abedb Add Jehiah and myself to the list of authors. Eric Haszlakiewicz 2011-06-14 09:56:00 -05:00
  • e6c76dab66 Update README files with pointers to new github repo and googlegroups mailing list Michael Clark 2011-06-14 10:04:24 +08:00
  • 276123efe0 handle NULL passed to json_objct_object_get Jehiah Czebotar 2011-05-26 01:34:52 +00:00
  • 43d2f417c7 move definition of json_object_iter to public header to enable external use of json_object_object_foreachC Jehiah Czebotar 2011-05-25 04:49:20 +00:00
  • 1910225b7c Set the svn:executable property so running the test_null test works properly. Eric Haszlakiewicz 2011-05-03 21:28:11 +00:00
  • a37ddcff2d Note the json-c home page in the README file. Eric Haszlakiewicz 2011-05-03 21:19:55 +00:00
  • 20707f4e14 Note a few recent changes in the ChangeLog. Eric Haszlakiewicz 2011-05-03 21:17:50 +00:00
  • 7a593a0fa7 Bump up the libtool library version to "1:0:1" (aka libjson.0.1.0) since the API has been extended, but is still backwards compatible.. Eric Haszlakiewicz 2011-05-03 21:12:17 +00:00
  • 0354e19c31 Bump the version to 0.10, since that's what we were at. Eric Haszlakiewicz 2011-05-03 21:09:30 +00:00
  • 41e67d0f6f Add a test_cast test case. This checks that the casting that is implied when calling the various json_object_get_FOO() functions on a differently typed object works correctly. Eric Haszlakiewicz 2011-05-03 20:42:25 +00:00
  • 886c4fbebf Add a json_type_to_name() function which returns a string that describes the type. Useful for logging. Eric Haszlakiewicz 2011-05-03 20:40:49 +00:00
  • e2e16011f0 Fix a bug in json_object_get_int() where calling it on a string type object would always return 0, instead of the actual numerical value of the string. Eric Haszlakiewicz 2011-05-03 20:39:07 +00:00
  • d1342d6f2d Add a dummy "NEWS" file to automake doesn't complain. Eric Haszlakiewicz 2011-05-03 19:24:07 +00:00
  • c096f5a7d7 readme updates Jehiah Czebotar 2011-01-14 18:02:00 +00:00
  • ac601b5b5f update json_object_new_string_len, json_escape_str (internal). Writer handles \x00 correctly Jehiah Czebotar 2011-01-14 17:23:06 +00:00
  • a503ee8217 add json_tokener_parse_verbose, and return NULL on parser errors Jehiah Czebotar 2010-12-08 03:52:07 +00:00
  • 5644272f03 set svn:ignore and .gitignore to skip intermediate build files Jehiah Czebotar 2010-12-07 23:22:33 +00:00
  • 252669cee6 Simplify things by storing integer values only as int64_t's internally, and omit the range check during parsing since we already have the checks when accessing the value. There is no longer a json_type_int64, only json_type_int. Fix some problems with parsing 0 and -0 values, and add a couple of tests. Fix some minor compile issues on HPUX environments. ehaszla 2010-12-07 18:15:35 +00:00
  • f1ae67dbf0 * Fix file descriptor leak if memory allocation fails in json_util Zachary Blair, zack_blair at hotmail dot com Michael Clark 2010-10-13 14:10:51 +00:00
  • bd0a567673 * Fix file descriptor leak if memory allocation fails in json_util Zachary Blair, zack_blair at hotmail dot com Michael Clark 2010-10-13 14:09:41 +00:00
  • d34701ed38 Update executable properties Michael Clark 2010-10-07 01:05:14 +00:00
  • c4dceae1c5 * Add int64 support. Two new functions json_object_net_int64 and json_object_get_int64. Binary compatibility preserved. Eric Haszlakiewicz, EHASZLA at transunion com Rui Miguel Silva Seabra, rms at 1407 dot org Michael Clark 2010-10-06 16:39:20 +00:00
  • 88ded9ceb8 * Make json_object_from_file take const char *filename Spotted by Vikram Raj V, vsagar at attinteractive dot com Michael Clark 2009-08-27 06:40:59 +00:00
  • f5dd43a9d1 * Fix subtle bug in linkhash where lookup could hang after all slots were filled then successively freed. Spotted by Jean-Marc Naud, j dash m at newtraxtech dot com Michael Clark 2009-08-27 06:40:00 +00:00
  • 126ad95fc4 * Add handling of surrogate pairs Brent Miller 2009-08-20 06:50:22 +00:00
  • f8663fc16f * Correct comment describing printbuf_memappend in printbuf.h Brent Miller 2009-08-20 06:41:32 +00:00
  • 51658855fb Add json-c.vcproj to EXTRA_DIST Michael Clark 2009-08-19 08:31:29 +00:00
  • 50626cd81f Add mailing lists to README.html Michael Clark 2009-08-19 08:18:25 +00:00
  • 09abeffda3 Add note about autoconf README changes to ChangeLog Michael Clark 2009-08-19 07:23:23 +00:00
  • db92cc02b9 Add README.html, README-WIN32.html and config.h.win32 to EXTRA_DIST in Makefile.am Christopher Watford 2009-07-31 02:59:02 +00:00
  • 1363df08d2 Update version to 0.9 Christopher Watford 2009-07-31 02:50:48 +00:00
  • b22565d1fd Update changelog Christopher Watford 2009-07-31 02:12:46 +00:00
  • c80ba8dd42 typo fix Michael Clark 2009-07-25 00:21:18 +00:00
  • 7fb9b03ffd * Rename min and max so we can never clash with C or C++ std library Ian Atha, thatha at yahoo-inc dot com Michael Clark 2009-07-25 00:13:44 +00:00
  • b1a22ac85f Add const qualifier to the json_tokener_parse functions Eric Haszlakiewicz, EHASZLA at transunion dot com Christopher Watford 2009-07-08 04:02:05 +00:00
  • 543bb1431f Erik Hovland (3): Fix any noticeable spelling or grammar errors. Make sure every va_start has a va_end. Check all pointers for validity. Christopher Watford 2009-07-08 03:46:10 +00:00
  • c5cbf8214a Disable REFCOUNT_DEBUG by default in json_object.c Christopher Watford 2009-06-30 03:40:53 +00:00
  • ffa742a552 Ooops. remove literal ^M (copy and paste problem) Christopher Watford 2009-05-12 02:40:24 +00:00
  • 9bc863ed3f Change note about CVS repository to point to subversion repos Christopher Watford 2009-05-12 02:36:04 +00:00
  • 24ea8c0414 update changelog for json_object_get_boolean fix Michael Clark 2009-04-27 08:22:22 +00:00
  • 6f70e44b7d Fix json_object_get_boolean to return false for empty string Spotted by Vitaly Kruglikov, Vitaly dot Kruglikov at palm dot com Michael Clark 2009-04-27 08:19:27 +00:00
  • 95f55a761c optimizations to json_tokener_parse_ex(), printbuf_memappend() -- Brent Miller, bdmiller at yahoo dash inc dot com Michael Clark 2009-04-27 08:16:58 +00:00
  • aaec1ef3c5 * Don't use this as a variable, so we can compile with a C++ compiler * Add casts from void* to type of assignment when using malloc * Add #ifdef __cplusplus guards to all of the headers * Add typedefs for json_object, json_tokener, array_list, printbuf, lh_table Michael Clark, <michael@metaparadigm.com> Michael Clark 2009-02-25 02:31:32 +00:00
  • 266a3fd301 * Don't use this as a variable, so we can compile with a C++ compiler Michael Clark, <michael@metaparadigm.com> Michael Clark 2009-02-25 01:55:31 +00:00
  • 22dee7cb59 * Null pointer dereference fix. Fix json_object_get_boolean strlen test to not return TRUE for zero length string. Remove redundant includes. Erik Hovland, erik at hovland dot org Michael Clark 2009-02-25 01:51:40 +00:00
  • e8de078806 * Fixed warning reported by adding -Wstrict-prototypes -Wold-style-definition to the compilatin flags. Dotan Barak, dotanba at gmail dot com Michael Clark 2009-02-25 01:45:00 +00:00
  • 75d0f12135 fix typo Michael Clark 2009-01-10 14:14:12 +00:00
  • e6548a3dc2 fix typo in json_object.h Michael Clark 2009-01-10 13:58:06 +00:00
  • 68cafad078 Add const correctness to public interfaces Gerard Krol, g dot c dot krol at student dot tudelft dot nl Michael Clark 2009-01-06 22:56:57 +00:00
  • 436aa98d67 update auto generated files Michael Clark 2009-01-06 22:53:25 +00:00
  • 4b831c3b2f Update version to 0.8 Michael Clark 2009-01-05 07:01:14 +00:00
  • 80a6007009 changes to make 'make dist' work properly Michael Clark 2009-01-05 06:55:02 +00:00
  • 8cdac64ccd Add va_end for every va_start. Dotan Barak, dotanba at gmail dot com Michael Clark 2009-01-05 03:57:59 +00:00
  • a0d35c7ebf change version to 0.8 Michael Clark 2008-08-08 06:54:28 +00:00
  • a3272546b1 fix to allow compile with -Werror -- Geoffrey Young, geoff at modperlcookbook dot org Michael Clark 2008-01-26 01:10:47 +00:00
  • 14862b1ef3 Patch allows for json-c compile with -Werror and not fail due to -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations Geoffrey Young, geoff at modperlcookbook dot org Michael Clark 2007-12-07 02:50:42 +00:00
  • c8f4a6e7de * Fix bug with use of capital E in numbers with exponents Mateusz Loskot, mateusz at loskot dot net * Add stddef.h include Michael Clark 2007-12-07 02:44:24 +00:00
  • dfaf670436 * Add macros to enable compiling out debug code Geoffrey Young, geoff at modperlcookbook dot org Michael Clark 2007-10-25 02:26:00 +00:00
  • ecf2c9b74b Update version number to 0.7 Michael Clark 2007-05-17 13:30:29 +00:00
  • a850f8e29e * Add escaping of backslash to json output * Add escaping of foward slash on tokenizing and output * Changes to internal tokenizer from using recursion to using a depth state structure to allow incremental parsing Michael Clark 2007-03-13 08:26:26 +00:00
  • 837240f75f * Fix bug in escaping of control characters Johan Bj�rklund, johbjo09 at kth dot se * Remove include "config.h" from headers (should only be included from .c files) Michael Clark <michael@metaparadigm.com> Michael Clark 2007-03-13 08:26:25 +00:00
  • f6a6e486ff * Make headers C++ compatible by change *this to *obj * Add ifdef C++ extern "C" to headers * Use simpler definition of min and max in bits.h Larry Lansing, llansing at fuzzynerd dot com Michael Clark 2007-03-13 08:26:23 +00:00
  • 0370baa74c * Fix additional error case in object parsing * Add back sign reversal in nested object parse as error pointer value is negative, while error value is positive. Michael Clark <michael@metaparadigm.com> Michael Clark 2007-03-13 08:26:22 +00:00
  • 7b899b6dc5 * fix pointer arithmetic bug for error pointer check in is_error() macro * fix type passed to printbuf_memappend in json_tokener * update autotools bootstrap instructions in README Michael Clark <michael@metaparadigm.com> Michael Clark 2007-03-13 08:26:21 +00:00
  • 4504df7117 * printbuf.c - C. Watford (christopher dot watford at gmail dot com) Added a Win32/Win64 compliant implementation of vasprintf * debug.c - C. Watford (christopher dot watford at gmail dot com) Removed usage of vsyslog on Win32/Win64 systems, needs to be handled by a configure script * json_object.c - C. Watford (christopher dot watford at gmail dot com) Added scope operator to wrap usage of json_object_object_foreach, this needs to be rethought to be more ANSI C friendly * json_object.h - C. Watford (christopher dot watford at gmail dot com) Added Microsoft C friendly version of json_object_object_foreach * json_tokener.c - C. Watford (christopher dot watford at gmail dot com) Added a Win32/Win64 compliant implementation of strndup * json_util.c - C. Watford (christopher dot watford at gmail dot com) Added cast and mask to suffice size_t v. unsigned int conversion correctness * json_tokener.c - sign reversal issue on error info for nested object parse spotted by Johan Bj�rklund (johbjo09 at kth.se) * json_object.c - escape " in json_escape_str * Change to automake and libtool to build shared and static library Michael Clark <michael@metaparadigm.com> Michael Clark 2007-03-13 08:26:20 +00:00
  • f0d08887b8 import of version 0.1 Michael Clark 2007-03-13 08:26:18 +00:00
  • 6d59966c4e create new svn project Michael Clark 2007-03-13 08:26:17 +00:00