Eric Haszlakiewicz
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.
13 years ago
Eric Haszlakiewicz
bb7978c95f
For the prototype for json_tokener_error_desc().
13 years ago
Eric Haszlakiewicz
23d0da5870
Mention json_type_to_name() in the docs for json_object_get_type().
13 years ago
Eric Haszlakiewicz
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.
13 years ago
Eric Haszlakiewicz
e6668b1406
Adjust json_object_is_type and json_object_get_type so they return json_type_null for NULL objects.
13 years ago
Eric Haszlakiewicz
d7db7e81a5
Ignore several more files, include .o's, .lo's, etc...
13 years ago
Eric Haszlakiewicz
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/)
13 years ago
Eric Haszlakiewicz
781798ccdf
Direct people to send bug reports to the json-c google group.
13 years ago
Eric Haszlakiewicz
fbd207bd6b
Remove a few more things in the distclean target to get rid of *all* generated files.
13 years ago
Eric Haszlakiewicz
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.
13 years ago
Eric Haszlakiewicz
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.
13 years ago
Eric Haszlakiewicz
1489b081a7
For the prototype for json_tokener_error_desc().
13 years ago
Eric Haszlakiewicz
6ff0817bac
Mention json_type_to_name() in the docs for json_object_get_type().
13 years ago
Eric Haszlakiewicz
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.
13 years ago
Eric Haszlakiewicz
aef439a175
Adjust json_object_is_type and json_object_get_type so they return json_type_null for NULL objects.
13 years ago
Eric Haszlakiewicz
7e57d63aeb
Merge pull request #16 from kdopen/master
Renaming the boolean type to json_bool in json_object.h
13 years ago
Eric Haszlakiewicz
d3c37b82a6
Ignore several more files, include .o's, .lo's, etc...
13 years ago
Eric Haszlakiewicz
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/)
13 years ago
Keith Derrick
37e7467476
Rename boolean type to json_bool
In building large systems, there are often clashes over the
preferred base type to use for bool/boolean. At least one
experience has been with a 3rd party proprietary library which
can not be changed. In that case, boolean was a synonym for
unsigned char and used widely in packed structures.
13 years ago
Eric Haszlakiewicz
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.
13 years ago
Eric Haszlakiewicz
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.
13 years ago
Eric Haszlakiewicz
15db9372f3
Merge branch 'master' of https://github.com/json-c/json-c
13 years ago
Eric Haszlakiewicz
44f0f62252
Issue#10: add some const qualifiers so test1 compiles again.
13 years ago
Eric Haszlakiewicz
0bc84fcaaf
Merge pull request #12 from jameinel/win32-project
Some updates to make the code compatible with VC 9 (2008)
13 years ago
John Arbash Meinel
6a231e4b41
Some updates to make the code compatible with VC 9 (2008)
VC 9 doesn't support late variable declarations, and doesn't have inttypes
so we need some direct definitions of a couple of more types.
13 years ago
Eric Haszlakiewicz
faa535386a
Merge pull request #11 from deweerdt/master
json_tokener_parse(): avoid possible NULL deref
13 years ago
Frederik Deweerdt
db050901fa
json_tokener_parse(): avoid possible NULL deref
13 years ago
Eric Haszlakiewicz
393085a4ba
Merge pull request #7 from federicoculloca/master
Added capitals to characters to json_hex_chars
14 years ago
Eric Haszlakiewicz
fc3d2114a6
Merge pull request #8 from mstorsjo/mingw
Add -no-undefined to the libtool flags
14 years ago
Martin Storsjo
a577ba376f
Add -no-undefined to the libtool flags
This allows building DLLs for windows - libtool doesn't even
try to do that unless this flag is specified.
14 years ago
Federico Culloca
7ec34c9b39
Added capitalized charaters to json_hex_chars
14 years ago
Eric Haszlakiewicz
fbae8ad0ad
Merge pull request #4 from deweerdt/master
Add new json_object_array_sort function
14 years ago
Frederik Deweerdt
c43871c866
Add new json_object_array_sort function
- uses libc's qsort to sort the arraylist
- add test in test1.c
14 years ago
Eric Haszlakiewicz
a8ffbe97b0
Add an initial (incomplete) release checklist.
14 years ago
Eric Haszlakiewicz
06e52abedb
Add Jehiah and myself to the list of authors.
14 years ago
Michael Clark
e6c76dab66
Update README files with pointers to new github repo and googlegroups mailing list
14 years ago
Jehiah Czebotar
276123efe0
handle NULL passed to json_objct_object_get
Patch via Nikola Pajkovsky
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@75 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Jehiah Czebotar
43d2f417c7
move definition of json_object_iter to public header to enable external use of json_object_object_foreachC
Patch from Rick Moran <https://github.com/DrHayt >
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@74 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
1910225b7c
Set the svn:executable property so running the test_null test works properly.
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@73 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
a37ddcff2d
Note the json-c home page in the README file.
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@72 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
20707f4e14
Note a few recent changes in the ChangeLog.
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@71 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
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..
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@70 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
0354e19c31
Bump the version to 0.10, since that's what we were at.
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@69 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
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.
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@68 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
886c4fbebf
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
14 years ago
Eric Haszlakiewicz
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.
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@66 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Eric Haszlakiewicz
d1342d6f2d
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
14 years ago
Jehiah Czebotar
c096f5a7d7
readme updates
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@64 327403b1-1117-474d-bef2-5cb71233fd97
14 years ago
Jehiah Czebotar
ac601b5b5f
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
14 years ago
Jehiah Czebotar
a503ee8217
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
15 years ago