jansson.git
13 years agoFix a few memory leaks in tests origin/1.2
Petri Lehtinen [Thu, 10 Jun 2010 18:15:43 +0000 (21:15 +0300)]
Fix a few memory leaks in tests

No changes to the actual library code.

13 years agoClarify the documentation on reference stealing
Petri Lehtinen [Thu, 20 May 2010 15:45:06 +0000 (18:45 +0300)]
Clarify the documentation on reference stealing

Provide an example usage pattern for reference stealing functions.
This way the user (hopely) sees more clearly how the reference
stealing functions are meant to be used.

13 years agoZero the visited flag after an encoding error
Petri Lehtinen [Fri, 14 May 2010 05:47:24 +0000 (08:47 +0300)]
Zero the visited flag after an encoding error

When encoding an array or object ends in an error, the visited flag
wasn't zeroed, causing subsequent encoding attempts to fail. This
patch fixes the problem by always zeroing the visited flag.

13 years agoZero the visited flag after encoding an empty array or object
Petri Lehtinen [Wed, 12 May 2010 12:41:09 +0000 (15:41 +0300)]
Zero the visited flag after encoding an empty array or object

Encoding an empty array or object worked, but encoding it again
(possibly after adding some items) failed, because the visited flag
(used for detecting circular references) wasn't zeroed.

13 years agoload.c: Make stream_init() static
Petri Lehtinen [Fri, 7 May 2010 04:35:11 +0000 (07:35 +0300)]
load.c: Make stream_init() static

14 years agojansson 1.2.1 v1.2.1
Petri Lehtinen [Sat, 3 Apr 2010 10:39:16 +0000 (13:39 +0300)]
jansson 1.2.1

14 years agodoc: Distribute conformance.rst
Petri Lehtinen [Sat, 3 Apr 2010 10:49:38 +0000 (13:49 +0300)]
doc: Distribute conformance.rst

14 years agoRequire autoconf 2.60
Petri Lehtinen [Sun, 28 Mar 2010 18:16:21 +0000 (21:16 +0300)]
Require autoconf 2.60

The AC_TYPE_INT32_T macro first appeared in autoconf 2.60.

14 years agoSupport compilers that don't have the "inline" keyword
Petri Lehtinen [Sun, 28 Mar 2010 18:14:08 +0000 (21:14 +0300)]
Support compilers that don't have the "inline" keyword

Use AC_C_INLINE autoconf macro, include config.h where needed, and add
a define of JSON_INLINE to jansson.h that has the correct "inline"
keyword.

14 years agodoc: Add chapter on RFC conformance
Petri Lehtinen [Fri, 26 Mar 2010 20:00:41 +0000 (22:00 +0200)]
doc: Add chapter on RFC conformance

Thanks to Deron Meranda for providing the initial text.

14 years agoEstimate real number underflows with 0.0
Petri Lehtinen [Fri, 26 Mar 2010 19:59:53 +0000 (21:59 +0200)]
Estimate real number underflows with 0.0

Earlier it was a decoding error.

14 years agoEnhance tests for null byte
Petri Lehtinen [Fri, 26 Mar 2010 19:29:31 +0000 (21:29 +0200)]
Enhance tests for null byte

14 years agoFix reference counting on true, false and null
Petri Lehtinen [Tue, 23 Mar 2010 06:08:57 +0000 (08:08 +0200)]
Fix reference counting on true, false and null

Initialize their reference counts to (unsigned int)-1 to disable
reference counting on them. It already was meant to work like this,
but the reference counts were just initialized to 1 instead of -1.

Thanks to Andrew Thompson for reporting this issue.

14 years agoDon't include stdint.h anywhere
Petri Lehtinen [Thu, 18 Mar 2010 05:18:43 +0000 (07:18 +0200)]
Don't include stdint.h anywhere

This should have fixed by commit 28682322, but there was one #include
left in utf.c. It now includes utf.h instead of stdint.h.

14 years agoMake int32_t available on all systems
Petri Lehtinen [Sat, 6 Feb 2010 19:08:56 +0000 (21:08 +0200)]
Make int32_t available on all systems

Use AC_TYPE_INT32_T and include inttypes.h (if it exists) instead of
stdint.h for maximum portability.

14 years agoAdd year 2010 to copyright notices
Petri Lehtinen [Tue, 2 Feb 2010 19:26:11 +0000 (21:26 +0200)]
Add year 2010 to copyright notices

14 years agotest/suites/api/test_object.c: Enhance tests for iterators
Petri Lehtinen [Thu, 28 Jan 2010 19:04:21 +0000 (21:04 +0200)]
test/suites/api/test_object.c: Enhance tests for iterators

14 years agotest/suites/api: Fail when a test fails
Petri Lehtinen [Thu, 28 Jan 2010 18:58:25 +0000 (20:58 +0200)]
test/suites/api: Fail when a test fails

The valgrind fix a while back apparently made the test system not
notice normal failures in suites/api.

14 years agorun-tests.sh: Print the test name correctly when VERBOSE=1
Petri Lehtinen [Thu, 28 Jan 2010 18:57:52 +0000 (20:57 +0200)]
run-tests.sh: Print the test name correctly when VERBOSE=1

14 years agodoc/Makefile.am: Don't remove changes.rst in clean
Petri Lehtinen [Tue, 26 Jan 2010 19:19:48 +0000 (21:19 +0200)]
doc/Makefile.am: Don't remove changes.rst in clean

14 years agojansson 1.2 v1.2
Petri Lehtinen [Thu, 21 Jan 2010 19:07:14 +0000 (21:07 +0200)]
jansson 1.2

14 years agotest/run-suites: Be less picky when searching for tests
Petri Lehtinen [Thu, 21 Jan 2010 18:59:56 +0000 (20:59 +0200)]
test/run-suites: Be less picky when searching for tests

This is to better catch distribution errors. It's easier to notice
that run-tests fails than to notice that one of many test suites is
silently skipped.

14 years agoDistribute some missing files
Petri Lehtinen [Thu, 21 Jan 2010 18:59:17 +0000 (20:59 +0200)]
Distribute some missing files

14 years agoRemove CHANGES preprocessing, as it didn't work with VPATH builds
Petri Lehtinen [Thu, 21 Jan 2010 18:53:05 +0000 (20:53 +0200)]
Remove CHANGES preprocessing, as it didn't work with VPATH builds

The problem is that Sphinx can only read input files from a single
directory. In VPATH builds, the source and build trees are separate,
and the changes.rst went into the build tree.

This patch solves the issue by using cfunc as the Sphinx default role.

14 years agoCHANGES: Update for v1.2
Petri Lehtinen [Tue, 19 Jan 2010 19:19:37 +0000 (21:19 +0200)]
CHANGES: Update for v1.2

14 years agoMerge branch '1.1'
Petri Lehtinen [Sun, 17 Jan 2010 11:57:20 +0000 (13:57 +0200)]
Merge branch '1.1'

Conflicts:
Makefile.am

14 years agodoc: Convert CHANGES to reStructuredText and add it to HTML docs
Petri Lehtinen [Tue, 12 Jan 2010 19:58:52 +0000 (21:58 +0200)]
doc: Convert CHANGES to reStructuredText and add it to HTML docs

CHANGES is preprocessed to convert json_*() function names to Sphinx
:cfunc: cross references. This is to keep CHANGES more readable in
both plain text and HTML.

14 years agoUpdate documentation
Petri Lehtinen [Tue, 12 Jan 2010 19:29:16 +0000 (21:29 +0200)]
Update documentation

* Python is no longer required to run the tests
* Mention pkg-config support
* Fix some errors

14 years agoFix memory leaks in json_equal() tests
Petri Lehtinen [Sun, 10 Jan 2010 19:01:59 +0000 (21:01 +0200)]
Fix memory leaks in json_equal() tests

14 years agoFix memory leaks in json_*_deep_copy()
Petri Lehtinen [Sun, 10 Jan 2010 19:01:07 +0000 (21:01 +0200)]
Fix memory leaks in json_*_deep_copy()

14 years agoEnable Valgrind support in the API suite
Petri Lehtinen [Sun, 10 Jan 2010 14:18:45 +0000 (16:18 +0200)]
Enable Valgrind support in the API suite

It was accidentally left out when the test system was refactored.

14 years agoUse _nocheck functions internally for speed
Petri Lehtinen [Sun, 10 Jan 2010 12:39:04 +0000 (14:39 +0200)]
Use _nocheck functions internally for speed

There are some places where we copy a string from an existing JSON
value. In these cases the string has already been checked for valid
UTF-8.

14 years agoAdd pkg-config support origin/1.1
Petri Lehtinen [Thu, 7 Jan 2010 17:28:00 +0000 (19:28 +0200)]
Add pkg-config support

Thanks to Sean Middleditch for contributing.

14 years agoAdd functions for shallow and deep copying JSON values
Petri Lehtinen [Thu, 31 Dec 2009 13:56:28 +0000 (15:56 +0200)]
Add functions for shallow and deep copying JSON values

14 years agoAdd equality test for JSON values
Petri Lehtinen [Thu, 31 Dec 2009 15:39:36 +0000 (17:39 +0200)]
Add equality test for JSON values

14 years agoAdd check-exports test
Petri Lehtinen [Mon, 21 Dec 2009 12:00:57 +0000 (14:00 +0200)]
Add check-exports test

14 years agoAdd _nocheck functions
Petri Lehtinen [Mon, 21 Dec 2009 12:00:40 +0000 (14:00 +0200)]
Add _nocheck functions

Added functions are:

* json_string_nocheck()
* json_string_set_nocheck()
* json_object_set_nocheck()
* json_object_set_new_nocheck()

These functions don't check that their string argument is valid UTF-8,
but assume that the user has already performed the check.

14 years agoMerge branch '1.1'
Petri Lehtinen [Mon, 21 Dec 2009 12:13:05 +0000 (14:13 +0200)]
Merge branch '1.1'

14 years agoRemove const qualifier from the json_t parameter in json_*_set() functions.
Petri Lehtinen [Mon, 21 Dec 2009 12:01:59 +0000 (14:01 +0200)]
Remove const qualifier from the json_t parameter in json_*_set() functions.

It's incorrect as these functions modify the value.

14 years agoFix tests for real
Petri Lehtinen [Thu, 17 Dec 2009 22:03:38 +0000 (00:03 +0200)]
Fix tests for real

The tests were broken by the "%.17g" fix that was merged from the 1.1
branch.

14 years agoMerge branch '1.1'
Petri Lehtinen [Sun, 20 Dec 2009 19:18:27 +0000 (21:18 +0200)]
Merge branch '1.1'

Conflicts:
configure.ac
doc/conf.py

14 years agoEnhance tests
Petri Lehtinen [Wed, 16 Dec 2009 20:05:55 +0000 (22:05 +0200)]
Enhance tests

* Now that JSON_SORT_KEYS is implemented, take it into use with the
  valid and valid-strip suites. This is to ensure that the tests
  remain valid even if the string hash function is changed in the
  future.

* Remove test_dump API test. Instead, implement the same tests more
  elegantly in the encoding-flags suite.

14 years agojansson 1.1.3 v1.1.3
Petri Lehtinen [Fri, 18 Dec 2009 19:43:12 +0000 (21:43 +0200)]
jansson 1.1.3

14 years agoEncode reals correctly
Petri Lehtinen [Thu, 17 Dec 2009 21:42:13 +0000 (23:42 +0200)]
Encode reals correctly

This patch changes the sprintf format from "%0.17f" to "%.17g", as the
f format specifier doesn't print the exponent at all. This caused
losing precision in all but the most simple cases.

Because the g specifier doesn't print the decimal fraction or exponent
if they're not needed, a ".0" has to be appended by hand in these
cases. Otherwise the value's type changes from real to integer when
decoding again.

Thanks to Philip Grandinetti for reporting this issue.

14 years agoImplement JSON_SORT_KEYS encoding flag
Petri Lehtinen [Mon, 7 Dec 2009 11:16:45 +0000 (13:16 +0200)]
Implement JSON_SORT_KEYS encoding flag

With this flag, the objects are sorted by key when encoding.

14 years agoRefactor the test system
Petri Lehtinen [Mon, 14 Dec 2009 21:01:36 +0000 (23:01 +0200)]
Refactor the test system

14 years agoImplement JSON_ENSURE_ASCII encoding flag
Petri Lehtinen [Sat, 5 Dec 2009 20:55:30 +0000 (22:55 +0200)]
Implement JSON_ENSURE_ASCII encoding flag

With this flag, all Unicode characters outside the ASCII range are
escaped.

14 years agoUse int32_t instead of plain int with Unicode code points
Petri Lehtinen [Wed, 2 Dec 2009 21:48:50 +0000 (23:48 +0200)]
Use int32_t instead of plain int with Unicode code points

On some architectures, int just isn't big enough to hold all Unicode
code points.

14 years agoOnly export symbols starting with "json_" in libjansson.la
Petri Lehtinen [Sun, 29 Nov 2009 11:04:00 +0000 (13:04 +0200)]
Only export symbols starting with "json_" in libjansson.la

This way we don't pollute the symbol namespace with internal symbols.

14 years agoMake parse_json static
Petri Lehtinen [Sun, 29 Nov 2009 11:00:47 +0000 (13:00 +0200)]
Make parse_json static

14 years agodoc/github_commits.c Add copyright notice
Petri Lehtinen [Sat, 28 Nov 2009 11:39:06 +0000 (13:39 +0200)]
doc/github_commits.c Add copyright notice

14 years agoMerge branch '1.1'
Petri Lehtinen [Sun, 8 Nov 2009 20:01:02 +0000 (22:01 +0200)]
Merge branch '1.1'

Conflicts:
configure.ac
doc/conf.py

14 years agojansson 1.1.2 v1.1.2
Petri Lehtinen [Sun, 8 Nov 2009 12:13:32 +0000 (14:13 +0200)]
jansson 1.1.2

14 years agoDon't include stdint.h in jansson.h
Petri Lehtinen [Sat, 7 Nov 2009 12:45:45 +0000 (14:45 +0200)]
Don't include stdint.h in jansson.h

It's not needed

14 years agoMerge branch '1.1'
Petri Lehtinen [Wed, 4 Nov 2009 20:10:46 +0000 (22:10 +0200)]
Merge branch '1.1'

Conflicts:
test/.gitignore
test/testprogs/Makefile.am

14 years agodump: Revise whitespace usage
Petri Lehtinen [Wed, 4 Nov 2009 19:24:22 +0000 (21:24 +0200)]
dump: Revise whitespace usage

- Never append newline to output
- By default, add spaces between array and object items for more
  readable output
- Introduce the flag JSON_COMPACT to not add the aforementioned spaces

14 years agoBuild documentation in make html target
Petri Lehtinen [Tue, 3 Nov 2009 21:07:43 +0000 (23:07 +0200)]
Build documentation in make html target

To keep the distchecks for the documentation, the documentation has to
be built in the check target instead of distcheck-hook.

While at it, rename doc/.build to doc/_build. This naming is the
default with sphinx 0.6.2.

14 years agoload: Parse a badly put - sign correctly
Petri Lehtinen [Thu, 29 Oct 2009 13:42:05 +0000 (15:42 +0200)]
load: Parse a badly put - sign correctly

Thanks to Manolis Delakis for reporting.

14 years agojson_load_file: Initialize the error struct properly
Petri Lehtinen [Tue, 27 Oct 2009 15:46:57 +0000 (17:46 +0200)]
json_load_file: Initialize the error struct properly

Failing to do this has the effect that the error message is not
returned when the input file cannot be opened (e.g. if it doesn't
exist).

Thanks to Martin Vopatek for reporting.

14 years agoMerge branch '1.1'
Petri Lehtinen [Mon, 26 Oct 2009 19:33:03 +0000 (21:33 +0200)]
Merge branch '1.1'

Conflicts:
CHANGES
configure.ac
doc/conf.py

14 years agojansson 1.1.1 v1.1.1
Petri Lehtinen [Mon, 26 Oct 2009 19:27:10 +0000 (21:27 +0200)]
jansson 1.1.1

14 years agoBuild documentation in distcheck-hook
Petri Lehtinen [Sat, 24 Oct 2009 21:18:03 +0000 (00:18 +0300)]
Build documentation in distcheck-hook

This is to check that all the documentation files are distributed
before releasing.

14 years agoReally distribute all the docs
Petri Lehtinen [Sat, 24 Oct 2009 21:17:16 +0000 (00:17 +0300)]
Really distribute all the docs

The tutorial example github_commits.c was still left out.

14 years agoDistribute all the docs
Petri Lehtinen [Sat, 24 Oct 2009 10:41:39 +0000 (13:41 +0300)]
Distribute all the docs

14 years agoFix version 1.1 release date in CHANGES
Petri Lehtinen [Wed, 21 Oct 2009 05:52:34 +0000 (08:52 +0300)]
Fix version 1.1 release date in CHANGES

14 years agoFix version 1.1 release date in CHANGES
Petri Lehtinen [Wed, 21 Oct 2009 05:52:34 +0000 (08:52 +0300)]
Fix version 1.1 release date in CHANGES

14 years agoSet the version number to 1.1+
Petri Lehtinen [Wed, 21 Oct 2009 05:51:43 +0000 (08:51 +0300)]
Set the version number to 1.1+

14 years agojansson 1.1 v1.1
Petri Lehtinen [Tue, 20 Oct 2009 18:29:16 +0000 (21:29 +0300)]
jansson 1.1

14 years agoDistribute stripped unit test data
Petri Lehtinen [Tue, 20 Oct 2009 18:23:06 +0000 (21:23 +0300)]
Distribute stripped unit test data

Apparently, it was forgotten to add these files to
test/testdata/Makefile.am in commit
04d550b02e8eadc0c9fb1966fe42fe9fc25f89e0.

14 years agoEnhance documentation
Petri Lehtinen [Mon, 19 Oct 2009 18:55:21 +0000 (21:55 +0300)]
Enhance documentation

- Add more information to the documentation front page
- Document how to build the documentation
- Clarify the tutorial a bit and remove some quirks
- Bring README.rst up-to-date
- Small enhancements here and there

14 years agoAdd C++ guards to jansson.h
raoulh [Mon, 19 Oct 2009 09:14:38 +0000 (02:14 -0700)]
Add C++ guards to jansson.h

Signed-off-by: Petri Lehtinen <petri@digip.org>
14 years agodoc: Add tutorial
Petri Lehtinen [Sat, 17 Oct 2009 11:18:40 +0000 (14:18 +0300)]
doc: Add tutorial

14 years agoFix indentation
Petri Lehtinen [Fri, 16 Oct 2009 18:20:38 +0000 (21:20 +0300)]
Fix indentation

No functional changes.

14 years agojson_dumpf: Document the output shortage on error
Petri Lehtinen [Thu, 15 Oct 2009 18:06:59 +0000 (21:06 +0300)]
json_dumpf: Document the output shortage on error

14 years agoEnhance handling of circular references
Petri Lehtinen [Thu, 15 Oct 2009 18:02:27 +0000 (21:02 +0300)]
Enhance handling of circular references

It's now an error to try to add an object or array to itself. The
encoder checks for circular references and fails with an error status
if one is detected.

14 years agojson_dumps: Close the strbuffer if dumping fails
Petri Lehtinen [Thu, 15 Oct 2009 17:54:32 +0000 (20:54 +0300)]
json_dumps: Close the strbuffer if dumping fails

14 years agodoc: Fix a small typo in apiref
Petri Lehtinen [Thu, 15 Oct 2009 14:39:49 +0000 (17:39 +0300)]
doc: Fix a small typo in apiref

14 years agodoc/Makefile.am: Remove *.pyc in clean
Petri Lehtinen [Wed, 14 Oct 2009 19:09:14 +0000 (22:09 +0300)]
doc/Makefile.am: Remove *.pyc in clean

14 years agoMake integer, real and string mutable
Petri Lehtinen [Tue, 13 Oct 2009 19:51:04 +0000 (22:51 +0300)]
Make integer, real and string mutable

Added functions:

  json_string_set
  json_integer_set
  json_real_set

While at it, clarify the documentation and parameter naming of
json_{string,integer,real}_value() a bit.

14 years agoDon't use non-portable asprintf()
Petri Lehtinen [Tue, 13 Oct 2009 12:40:26 +0000 (15:40 +0300)]
Don't use non-portable asprintf()

Thanks to Adam Strzelecki for reporting.

14 years agoMerge branch '1.0'
Petri Lehtinen [Sun, 11 Oct 2009 18:51:54 +0000 (21:51 +0300)]
Merge branch '1.0'

Conflicts:
configure.ac
doc/conf.py

14 years agojansson 1.0.4 origin/1.0 v1.0.4
Petri Lehtinen [Sun, 11 Oct 2009 18:30:12 +0000 (21:30 +0300)]
jansson 1.0.4

14 years agoFix API tests for object
Petri Lehtinen [Sat, 10 Oct 2009 19:54:05 +0000 (22:54 +0300)]
Fix API tests for object

Because of a typo in test/testprogs/Makefile.am, the tests for object
were never compiled or run.

14 years agoRemove config.h.in
Petri Lehtinen [Sat, 10 Oct 2009 18:16:13 +0000 (21:16 +0300)]
Remove config.h.in

It doesn't have to be in version control.

14 years agoExtend object API
Petri Lehtinen [Sun, 11 Oct 2009 17:42:43 +0000 (20:42 +0300)]
Extend object API

Added functions:

  json_object_size
  json_object_clear
  json_object_update

14 years agoFix API tests for object
Petri Lehtinen [Sat, 10 Oct 2009 19:54:05 +0000 (22:54 +0300)]
Fix API tests for object

Because of a typo in test/testprogs/Makefile.am, the tests for object
were never compiled or run.

14 years agoCheck json_object_set_new arguments
Petri Lehtinen [Sat, 10 Oct 2009 19:53:36 +0000 (22:53 +0300)]
Check json_object_set_new arguments

A segfault was caused by NULL key.

14 years agoRemove config.h.in
Petri Lehtinen [Sat, 10 Oct 2009 18:16:13 +0000 (21:16 +0300)]
Remove config.h.in

It doesn't have to be in version control.

14 years agoFix a few more compilation issues
Petri Lehtinen [Tue, 6 Oct 2009 10:22:26 +0000 (13:22 +0300)]
Fix a few more compilation issues

These were left out from the previous commit.

14 years agoMake it compile on platforms where char is unsigned
Petri Lehtinen [Thu, 1 Oct 2009 18:52:12 +0000 (21:52 +0300)]
Make it compile on platforms where char is unsigned

Linux on powerpc seems to be one such platform.

14 years agoRelax Autoconf version prereq
Petri Lehtinen [Thu, 1 Oct 2009 17:59:59 +0000 (20:59 +0300)]
Relax Autoconf version prereq

From 2.63 to 2.59, which is more widely supported.

14 years agoExtend array API
Petri Lehtinen [Tue, 29 Sep 2009 18:19:55 +0000 (21:19 +0300)]
Extend array API

Added functions:

  json_array_insert
  json_array_insert_new
  json_array_remove
  json_array_clear
  json_array_extend

14 years agodoc: Add getting started guide
Petri Lehtinen [Sun, 13 Sep 2009 18:56:19 +0000 (21:56 +0300)]
doc: Add getting started guide

14 years agoMerge branch '1.0'
Petri Lehtinen [Mon, 14 Sep 2009 12:06:06 +0000 (15:06 +0300)]
Merge branch '1.0'

Conflicts:
configure.ac
doc/conf.py

14 years agojansson 1.0.3 v1.0.3
Petri Lehtinen [Mon, 14 Sep 2009 11:32:41 +0000 (14:32 +0300)]
jansson 1.0.3

14 years agoload: Check for integer and real overlfows and underflows
Petri Lehtinen [Sun, 13 Sep 2009 10:15:34 +0000 (13:15 +0300)]
load: Check for integer and real overlfows and underflows

Backported from master, commit 5406c2b3d347505149d382213b6f318f8c35de6a:
  * deleted test/testdata/invalid-stripped because the stripped tests
    don't exist in 1.0

14 years agotest/json-compare.py: Use json module from Python >=2.6 or simplejson
Petri Lehtinen [Fri, 11 Sep 2009 19:22:34 +0000 (22:22 +0300)]
test/json-compare.py: Use json module from Python >=2.6 or simplejson

Backported from master, commit 9d16ec755c9754fe1f79fe55ab719a7f8578ce37

14 years agoload: Check for integer and real overlfows and underflows
Petri Lehtinen [Sun, 13 Sep 2009 10:15:34 +0000 (13:15 +0300)]
load: Check for integer and real overlfows and underflows

14 years agoUse unsigned long instead of uint32_t
Petri Lehtinen [Sat, 12 Sep 2009 09:49:17 +0000 (12:49 +0300)]
Use unsigned long instead of uint32_t

Some day we will have ANSI C compatibility... This change doesn't make
the API backwards incompatible because uint32_t was only used in flags
to json_dump*() and the flags are meant to be used only by ORing
constants and macro output, and actually currently only JSON_INDENT
can be used.

14 years agotest/json-compare.py: Use json module from Python >=2.6 or simplejson
Petri Lehtinen [Fri, 11 Sep 2009 19:22:34 +0000 (22:22 +0300)]
test/json-compare.py: Use json module from Python >=2.6 or simplejson