platform/upstream/json-c.git
13 years agoAdd a json_type_to_name() function which returns a string that describes the type...
Eric Haszlakiewicz [Tue, 3 May 2011 20:40:49 +0000 (20:40 +0000)]
Add a json_type_to_name() function which returns a string that describes the type.  Useful for logging.

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@67 327403b1-1117-474d-bef2-5cb71233fd97

13 years agoFix a bug in json_object_get_int() where calling it on a string type object would...
Eric Haszlakiewicz [Tue, 3 May 2011 20:39:07 +0000 (20:39 +0000)]
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.

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@66 327403b1-1117-474d-bef2-5cb71233fd97

13 years agoAdd a dummy "NEWS" file to automake doesn't complain.
Eric Haszlakiewicz [Tue, 3 May 2011 19:24:07 +0000 (19:24 +0000)]
Add a dummy "NEWS" file to automake doesn't complain.

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@65 327403b1-1117-474d-bef2-5cb71233fd97

13 years agoreadme updates
Jehiah Czebotar [Fri, 14 Jan 2011 18:02:00 +0000 (18:02 +0000)]
readme updates

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@64 327403b1-1117-474d-bef2-5cb71233fd97

13 years agoupdate json_object_new_string_len, json_escape_str (internal). Writer handles \x00...
Jehiah Czebotar [Fri, 14 Jan 2011 17:23:06 +0000 (17:23 +0000)]
update json_object_new_string_len, json_escape_str (internal). Writer handles \x00 correctly

Added parse_null test. This does not change anything with how the parser handles \u0000 or null characters

This commit is addapted from one by Adomas Paltanavičius <adomas@leanholding.com>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@63 327403b1-1117-474d-bef2-5cb71233fd97

13 years agoadd json_tokener_parse_verbose, and return NULL on parser errors
Jehiah Czebotar [Wed, 8 Dec 2010 03:52:07 +0000 (03:52 +0000)]
add json_tokener_parse_verbose, and return NULL on parser errors

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@62 327403b1-1117-474d-bef2-5cb71233fd97

13 years agoset svn:ignore and .gitignore to skip intermediate build files
Jehiah Czebotar [Tue, 7 Dec 2010 23:22:33 +0000 (23:22 +0000)]
set svn:ignore and .gitignore to skip intermediate build files

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@61 327403b1-1117-474d-bef2-5cb71233fd97

13 years agoSimplify things by storing integer values only as int64_t's internally, and
ehaszla [Tue, 7 Dec 2010 18:15:35 +0000 (18:15 +0000)]
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.

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@60 327403b1-1117-474d-bef2-5cb71233fd97

14 years ago * Fix file descriptor leak if memory allocation fails in json_util
Michael Clark [Wed, 13 Oct 2010 14:10:51 +0000 (14:10 +0000)]
  * Fix file descriptor leak if memory allocation fails in json_util
    Zachary Blair, zack_blair at hotmail dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@59 327403b1-1117-474d-bef2-5cb71233fd97

14 years ago * Fix file descriptor leak if memory allocation fails in json_util
Michael Clark [Wed, 13 Oct 2010 14:09:41 +0000 (14:09 +0000)]
  * Fix file descriptor leak if memory allocation fails in json_util
    Zachary Blair, zack_blair at hotmail dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@58 327403b1-1117-474d-bef2-5cb71233fd97

14 years agoUpdate executable properties
Michael Clark [Thu, 7 Oct 2010 01:05:14 +0000 (01:05 +0000)]
Update executable properties

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@57 327403b1-1117-474d-bef2-5cb71233fd97

14 years ago * Add int64 support. Two new functions json_object_net_int64 and
Michael Clark [Wed, 6 Oct 2010 16:39:20 +0000 (16:39 +0000)]
  * 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

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@56 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Make json_object_from_file take const char *filename
Michael Clark [Thu, 27 Aug 2009 06:40:59 +0000 (06:40 +0000)]
  * Make json_object_from_file take const char *filename
    Spotted by Vikram Raj V, vsagar at attinteractive dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@55 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Fix subtle bug in linkhash where lookup could hang after all slots
Michael Clark [Thu, 27 Aug 2009 06:40:00 +0000 (06:40 +0000)]
  * 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

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@54 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Add handling of surrogate pairs
Brent Miller [Thu, 20 Aug 2009 06:50:22 +0000 (06:50 +0000)]
  * Add handling of surrogate pairs

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@53 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Correct comment describing printbuf_memappend in printbuf.h
Brent Miller [Thu, 20 Aug 2009 06:41:32 +0000 (06:41 +0000)]
  * Correct comment describing printbuf_memappend in printbuf.h

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@52 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoAdd json-c.vcproj to EXTRA_DIST
Michael Clark [Wed, 19 Aug 2009 08:31:29 +0000 (08:31 +0000)]
Add json-c.vcproj to EXTRA_DIST

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@51 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoAdd mailing lists to README.html
Michael Clark [Wed, 19 Aug 2009 08:18:25 +0000 (08:18 +0000)]
Add mailing lists to README.html

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@50 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoAdd note about autoconf README changes to ChangeLog
Michael Clark [Wed, 19 Aug 2009 07:23:23 +0000 (07:23 +0000)]
Add note about autoconf README changes to ChangeLog

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@49 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoAdd README.html, README-WIN32.html and config.h.win32 to EXTRA_DIST in Makefile.am
Christopher Watford [Fri, 31 Jul 2009 02:59:02 +0000 (02:59 +0000)]
Add README.html, README-WIN32.html and config.h.win32 to EXTRA_DIST in Makefile.am

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@47 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoUpdate version to 0.9
Christopher Watford [Fri, 31 Jul 2009 02:50:48 +0000 (02:50 +0000)]
Update version to 0.9

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@46 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoUpdate changelog
Christopher Watford [Fri, 31 Jul 2009 02:12:46 +0000 (02:12 +0000)]
Update changelog

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@45 327403b1-1117-474d-bef2-5cb71233fd97

15 years agotypo fix
Michael Clark [Sat, 25 Jul 2009 00:21:18 +0000 (00:21 +0000)]
typo fix

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@44 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Rename min and max so we can never clash with C or C++ std library
Michael Clark [Sat, 25 Jul 2009 00:13:44 +0000 (00:13 +0000)]
  * Rename min and max so we can never clash with C or C++ std library
    Ian Atha, thatha at yahoo-inc dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@43 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago Add const qualifier to the json_tokener_parse functions
Christopher Watford [Wed, 8 Jul 2009 04:02:05 +0000 (04:02 +0000)]
 Add const qualifier to the json_tokener_parse functions
    Eric Haszlakiewicz, EHASZLA at transunion dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@42 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoErik Hovland (3):
Christopher Watford [Wed, 8 Jul 2009 03:46:10 +0000 (03:46 +0000)]
Erik Hovland (3):
      Fix any noticeable spelling or grammar errors.
      Make sure every va_start has a va_end.
      Check all pointers for validity.

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@41 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoDisable REFCOUNT_DEBUG by default in json_object.c
Christopher Watford [Tue, 30 Jun 2009 03:40:53 +0000 (03:40 +0000)]
Disable REFCOUNT_DEBUG by default in json_object.c

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@40 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoOoops. remove literal ^M (copy and paste problem)
Christopher Watford [Tue, 12 May 2009 02:40:24 +0000 (02:40 +0000)]
Ooops. remove literal ^M (copy and paste problem)

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@39 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoChange note about CVS repository to point to subversion repos
Christopher Watford [Tue, 12 May 2009 02:36:04 +0000 (02:36 +0000)]
Change note about CVS repository to point to subversion repos

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@38 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoupdate changelog for json_object_get_boolean fix
Michael Clark [Mon, 27 Apr 2009 08:22:22 +0000 (08:22 +0000)]
update changelog for json_object_get_boolean fix

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@36 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoFix json_object_get_boolean to return false for empty string
Michael Clark [Mon, 27 Apr 2009 08:19:27 +0000 (08:19 +0000)]
Fix json_object_get_boolean to return false for empty string
Spotted by Vitaly Kruglikov, Vitaly dot Kruglikov at palm dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@35 327403b1-1117-474d-bef2-5cb71233fd97

15 years agooptimizations to json_tokener_parse_ex(), printbuf_memappend()
Michael Clark [Mon, 27 Apr 2009 08:16:58 +0000 (08:16 +0000)]
optimizations to json_tokener_parse_ex(), printbuf_memappend()
  -- Brent Miller, bdmiller at yahoo dash inc dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@34 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Don't use this as a variable, so we can compile with a C++ compiler
Michael Clark [Wed, 25 Feb 2009 02:31:32 +0000 (02:31 +0000)]
  * 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>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@33 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Don't use this as a variable, so we can compile with a C++ compiler
Michael Clark [Wed, 25 Feb 2009 01:55:31 +0000 (01:55 +0000)]
  * Don't use this as a variable, so we can compile with a C++ compiler
    Michael Clark, <michael@metaparadigm.com>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@32 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Null pointer dereference fix. Fix json_object_get_boolean strlen test
Michael Clark [Wed, 25 Feb 2009 01:51:40 +0000 (01:51 +0000)]
  * 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

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@31 327403b1-1117-474d-bef2-5cb71233fd97

15 years ago * Fixed warning reported by adding -Wstrict-prototypes
Michael Clark [Wed, 25 Feb 2009 01:45:00 +0000 (01:45 +0000)]
  * Fixed warning reported by adding -Wstrict-prototypes
    -Wold-style-definition to the compilatin flags.
    Dotan Barak, dotanba at gmail dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@30 327403b1-1117-474d-bef2-5cb71233fd97

15 years agofix typo
Michael Clark [Sat, 10 Jan 2009 14:14:12 +0000 (14:14 +0000)]
fix typo

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@29 327403b1-1117-474d-bef2-5cb71233fd97

15 years agofix typo in json_object.h
Michael Clark [Sat, 10 Jan 2009 13:58:06 +0000 (13:58 +0000)]
fix typo in json_object.h

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@28 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoAdd const correctness to public interfaces
Michael Clark [Tue, 6 Jan 2009 22:56:57 +0000 (22:56 +0000)]
Add const correctness to public interfaces
    Gerard Krol, g dot c dot krol at student dot tudelft dot nl

Update version number to 0.9

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@27 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoupdate auto generated files
Michael Clark [Tue, 6 Jan 2009 22:53:25 +0000 (22:53 +0000)]
update auto generated files

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@26 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoUpdate version to 0.8
Michael Clark [Mon, 5 Jan 2009 07:01:14 +0000 (07:01 +0000)]
Update version to 0.8

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@25 327403b1-1117-474d-bef2-5cb71233fd97

15 years agochanges to make 'make dist' work properly
Michael Clark [Mon, 5 Jan 2009 06:55:02 +0000 (06:55 +0000)]
changes to make 'make dist' work properly

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@24 327403b1-1117-474d-bef2-5cb71233fd97

15 years agoAdd va_end for every va_start.
Michael Clark [Mon, 5 Jan 2009 03:57:59 +0000 (03:57 +0000)]
Add va_end for every va_start.
  Dotan Barak, dotanba at gmail dot com

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@23 327403b1-1117-474d-bef2-5cb71233fd97

16 years agochange version to 0.8
Michael Clark [Fri, 8 Aug 2008 06:54:28 +0000 (06:54 +0000)]
change version to 0.8

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@22 327403b1-1117-474d-bef2-5cb71233fd97

16 years agofix to allow compile with -Werror
Michael Clark [Sat, 26 Jan 2008 01:10:47 +0000 (01:10 +0000)]
fix to allow compile with -Werror
  -- Geoffrey Young, geoff at modperlcookbook dot org

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@21 327403b1-1117-474d-bef2-5cb71233fd97

16 years agoPatch allows for json-c compile with -Werror and not fail due to
Michael Clark [Fri, 7 Dec 2007 02:50:42 +0000 (02:50 +0000)]
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

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@20 327403b1-1117-474d-bef2-5cb71233fd97

16 years ago* Fix bug with use of capital E in numbers with exponents
Michael Clark [Fri, 7 Dec 2007 02:44:24 +0000 (02:44 +0000)]
* Fix bug with use of capital E in numbers with exponents
    Mateusz Loskot, mateusz at loskot dot net
  * Add stddef.h include

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@19 327403b1-1117-474d-bef2-5cb71233fd97

17 years ago* Add macros to enable compiling out debug code
Michael Clark [Thu, 25 Oct 2007 02:26:00 +0000 (02:26 +0000)]
* Add macros to enable compiling out debug code
  Geoffrey Young, geoff at modperlcookbook dot org

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@18 327403b1-1117-474d-bef2-5cb71233fd97

17 years agoUpdate version number to 0.7
Michael Clark [Thu, 17 May 2007 13:30:29 +0000 (13:30 +0000)]
Update version number to 0.7

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@17 327403b1-1117-474d-bef2-5cb71233fd97

17 years ago * Add escaping of backslash to json output
Michael Clark [Tue, 13 Mar 2007 08:26:26 +0000 (08:26 +0000)]
  * 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

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@14 327403b1-1117-474d-bef2-5cb71233fd97

17 years ago * Fix bug in escaping of control characters
Michael Clark [Tue, 13 Mar 2007 08:26:25 +0000 (08:26 +0000)]
  * 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>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@12 327403b1-1117-474d-bef2-5cb71233fd97

17 years ago * Make headers C++ compatible by change *this to *obj
Michael Clark [Tue, 13 Mar 2007 08:26:23 +0000 (08:26 +0000)]
  * 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

  * Remove automake 1.6 requirement
  * Move autogen commands into autogen.sh. Update README
  * Remove error pointer special case for Windows
  * Change license from LGPL to MIT
    Michael Clark <michael@metaparadigm.com>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@10 327403b1-1117-474d-bef2-5cb71233fd97

17 years ago * Fix additional error case in object parsing
Michael Clark [Tue, 13 Mar 2007 08:26:22 +0000 (08:26 +0000)]
  * 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>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@8 327403b1-1117-474d-bef2-5cb71233fd97

17 years ago * fix pointer arithmetic bug for error pointer check in is_error() macro
Michael Clark [Tue, 13 Mar 2007 08:26:21 +0000 (08:26 +0000)]
  * 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>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@6 327403b1-1117-474d-bef2-5cb71233fd97

17 years ago * printbuf.c - C. Watford (christopher dot watford at gmail dot com)
Michael Clark [Tue, 13 Mar 2007 08:26:20 +0000 (08:26 +0000)]
  * 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>

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@4 327403b1-1117-474d-bef2-5cb71233fd97

17 years agoimport of version 0.1
Michael Clark [Tue, 13 Mar 2007 08:26:18 +0000 (08:26 +0000)]
import of version 0.1

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@2 327403b1-1117-474d-bef2-5cb71233fd97

17 years agocreate new svn project
Michael Clark [Tue, 13 Mar 2007 08:26:17 +0000 (08:26 +0000)]
create new svn project

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@1 327403b1-1117-474d-bef2-5cb71233fd97