Commit Graph

491 Commits

Author SHA1 Message Date
Sean Middleditch
95bf762eeb rename jansson namespace to json 2010-01-18 18:37:13 -08:00
Petri Lehtinen
f9febb64c5 Merge branch '1.1'
Conflicts:
	Makefile.am
2010-01-17 13:57:20 +02:00
Sean Middleditch
dd36e4e838 rename files to match upstream's preferences 2010-01-16 20:27:13 -08:00
Sean Middleditch
df35adc438 add comments noting inefficiency of stream ops 2010-01-16 20:21:52 -08:00
Sean Middleditch
f88a5a0e6b added a couple minor comments 2010-01-16 20:17:48 -08:00
Sean Middleditch
cc06bc334a cleanup code 2010-01-16 20:15:33 -08:00
Sean Middleditch
2dc2b6bab7 rename ArrayProxy to ElementProxy and ObjectProxy to PropertyProxy 2010-01-16 01:40:16 -08:00
Sean Middleditch
49a64a6edf rename and move the _* private classes to _private namespace 2010-01-16 01:36:13 -08:00
Sean Middleditch
f0be52f9f8 add object property proxy support 2010-01-16 01:31:37 -08:00
Sean Middleditch
1bc0225441 add array element proxy support 2010-01-16 01:24:27 -08:00
Sean Middleditch
87df8bb0fe templatize janssonxx functionality to prepare for proxy setters 2010-01-16 01:13:19 -08:00
Petri Lehtinen
b76ee75aad 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.
2010-01-14 22:03:48 +02:00
Sean Middleditch
69437a7183 dont attempt to create a std::string from NULL in as_string() 2010-01-13 18:35:07 -08:00
Sean Middleditch
63f762bc48 save flags default to 0 2010-01-13 18:34:17 -08:00
Sean Middleditch
5a0efe6536 add a safeguard against NULL return output stream 2010-01-13 18:33:19 -08:00
Sean Middleditch
01759517aa add Value::from(float) 2010-01-13 18:32:44 -08:00
Sean Middleditch
17805e5829 insert and remove methods 2010-01-12 16:17:11 -08:00
Sean Middleditch
492d95329a add proper attribution to janssonxx.h 2010-01-12 16:07:57 -08:00
Sean Middleditch
7ba18d3f0a use different temporaries in tests instead of reusing e3 2010-01-12 16:03:27 -08:00
Sean Middleditch
7d09af38c1 remove auto type conversion on array/object assignment 2010-01-12 15:38:47 -08:00
Sean Middleditch
8d3a9e347c rename as_json_t to as_json 2010-01-12 15:33:36 -08:00
Sean Middleditch
f79a81dad9 add (ugly) stream support 2010-01-12 15:29:45 -08:00
Sean Middleditch
b98e9d180c rename the set() methods 2010-01-12 15:14:57 -08:00
Petri Lehtinen
b077d7988e Update documentation
* Python is no longer required to run the tests
* Mention pkg-config support
* Fix some errors
2010-01-12 21:29:16 +02:00
Sean Middleditch
8d5d2a93d5 remove some unnecessary checks 2010-01-12 04:30:02 -08:00
Sean Middleditch
d77c2e3fb0 cleanup the take_ownership function a bit 2010-01-12 04:26:30 -08:00
Sean Middleditch
7ef3202f83 added save_file and save_string methods 2010-01-12 04:20:17 -08:00
Sean Middleditch
36085ab49a include jansson.h inside the jansson namespace 2010-01-12 04:13:26 -08:00
Sean Middleditch
f743c4ee7f test object property assignment and clear 2010-01-12 01:41:17 -08:00
Sean Middleditch
c994eddec4 expand array assignment tests 2010-01-12 01:34:58 -08:00
Sean Middleditch
5a20e2695b add link to Jansson web to README 2010-01-12 01:31:08 -08:00
Sean Middleditch
cd18aa97f0 added README 2010-01-12 01:29:44 -08:00
Sean Middleditch
bd09127859 cleaner assignment behavior 2010-01-12 01:26:47 -08:00
Sean Middleditch
6818c117ee ignore test-bin output file 2010-01-12 01:10:38 -08:00
Sean Middleditch
39601c183a add tests 2010-01-12 01:10:20 -08:00
Sean Middleditch
1e3b41e8ea initial commit of janssonxx.h 2010-01-12 01:10:09 -08:00
Petri Lehtinen
7f8684828d Fix memory leaks in json_equal() tests 2010-01-10 21:02:08 +02:00
Petri Lehtinen
93ac06c902 Fix memory leaks in json_*_deep_copy() 2010-01-10 21:01:07 +02:00
Petri Lehtinen
b21f07b35c Enable Valgrind support in the API suite
It was accidentally left out when the test system was refactored.
2010-01-10 16:18:46 +02:00
Petri Lehtinen
508873de9b 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.
2010-01-10 14:39:11 +02:00
Petri Lehtinen
aeb5b481c9 Add pkg-config support
Thanks to Sean Middleditch for contributing.
2010-01-07 19:30:20 +02:00
Petri Lehtinen
9db34dc31a Add functions for shallow and deep copying JSON values 2009-12-31 18:50:39 +02:00
Petri Lehtinen
95a468cebb Add equality test for JSON values 2009-12-31 18:50:36 +02:00
Petri Lehtinen
22173c1d8b Add check-exports test 2009-12-23 22:29:59 +02:00
Petri Lehtinen
dd2fe1ebe8 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.
2009-12-23 22:28:24 +02:00
Petri Lehtinen
6637b976ed Merge branch '1.1' 2009-12-21 14:13:05 +02:00
Petri Lehtinen
f5202bedef Remove const qualifier from the json_t parameter in json_*_set() functions.
It's incorrect as these functions modify the value.
2009-12-21 14:12:06 +02:00
Petri Lehtinen
2db2f2cfb6 Fix tests for real
The tests were broken by the "%.17g" fix that was merged from the 1.1
branch.
2009-12-21 12:52:29 +02:00
Petri Lehtinen
e7a5dc58e6 Merge branch '1.1'
Conflicts:
	configure.ac
	doc/conf.py
2009-12-21 12:52:25 +02:00
Petri Lehtinen
3889af476b 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.
2009-12-21 12:50:49 +02:00