Eric Hawicz
e5ca4d3b3d
Update ChangeLog, AUTHORS and issues_closed_for_0.18.md for an upcoming 0.18 release.
1 year ago
Eric Hawicz
85ed501a3d
Update the ChangeLog for 0.17 based on notable commits since 0.16
2 years ago
Eric Haszlakiewicz
d6f46ae104
Explicitly check for integer overflow/underflow when parsing integers with JSON_TOKENER_STRICT.
2 years ago
Eric Haszlakiewicz
253a5fa99d
Issue #705 : disable locale handling when building for a uClibc system because its duplocale() function (intentionally) crashes.
3 years ago
Eric Haszlakiewicz
9749b0cb66
When serializing with JSON_C_TO_STRING_PRETTY set, keep the opening and closing curly or square braces on same line for empty objects or arrays. Issue #778 .
3 years ago
Eric Haszlakiewicz
7d303478a4
Update the ChangeLog with recent changes, in preparation for a 0.16 release.
Add a list of issues closed for this release.
3 years ago
Even Rouault
3bb54f97e7
Fix typos in code comments and ChangeLog
3 years ago
Eric Haszlakiewicz
2d2382d709
Add linkhash accessor functions (lh_table_head(), lh_entry_next(), etc...) to pave the way for making the lh_table and lh_entry structure opaque in the future.
Update the docs to mark all members of those structures deprecated, and
suggest what to use instead.
3 years ago
Eric Haszlakiewicz
320548caf6
Drop the REFCOUNT_DEBUG code, it hasn't been used in ages.
3 years ago
José Bollo
8bf3b45a29
Really use prefix JSON_C_OBJECT_ADD_*
This change introduces JSON_C_OBJECT_ADD_CONSTANT_KEY
as a replacement of JSON_C_OBJECT_KEY_IS_CONSTANT.
The description of json_object_object_add_ex tells to
look at the flags JSON_C_OBJECT_ADD_* but it is not
for JSON_C_OBJECT_KEY_IS_CONSTANT.
From the point of vue of a developper using json-c,
the function json_object_object_add_ex is mainly used,
not the hash facility, it seems more natural to provide
a regular naming of prefix JSON_C_OBJECT_ADD_CONSTANT_KEY.
4 years ago
Eric Haszlakiewicz
de02d09c32
Update the master branch to version 0.15.99
5 years ago
Eric Haszlakiewicz
024e835f4c
Update the ChangeLog with recent changes, in preparation for a 0.15 release.
5 years ago
Eric Haszlakiewicz
f23486a321
In the json_tokener_state_number case, explicitly adjust what "number" characters are allowed based on the exact micro-state that we're in, and check for invalid following characters in a different way, to allow a valid json_type_number object to be returned at the top level.
This causes previously failing strings like "123-456" to return a valid json_object with the appropriate value. If you care about the trailing content, call json_tokener_parse_ex() and check the parse end point with json_tokener_get_parse_end().
5 years ago
Eric Haszlakiewicz
6eac6986c9
Fix incremental parsing of invalid numbers with exponents, such as "0e+-" and "12.3E12E12", while still allowing "0e+" in non-strict mode.
Deprecate the json_parse_double() function from json_util.h
5 years ago
Eric Haszlakiewicz
a68566bf6a
Issue #616 : Change the parsing of surrogate pairs in unicode escapes so it uses a couple of additional states instead of assuming the low surrogate is already present, to ensure that we correctly handle various cases of incremental parsing.
5 years ago
Eric Haszlakiewicz
e26a1195f4
Add json_object_array_shrink() (and array_list_shrink()) and use it in json_tokener to minimize the amount of memory used. This results in a 39%-50% reduction in memory use (peak RSS, peak heap usage) on the jc-bench benchmark and 9% shorter runtime.
Also add the json_object_new_array_ext, array_list_new2, and array_list_shrink functions.
5 years ago
Eric Haszlakiewicz
02fe2e0ccd
Summarize the changes from the json_object-split branch in the ChangeLog.
5 years ago
Eric Haszlakiewicz
55d053118e
Add an apps directory, and a json_parse program to parse an input file and report on memory usage.
This is intended to provide a way, during development, to test out the memory
and performance impacts of a change.
5 years ago
Eric Haszlakiewicz
f6f76f9430
Add a JSON_TOKENER_ALLOW_TRAILING_CHARS flag for json_tokener_set_flags() to allow multiple objects to be parsed from input even when JSON_TOKENER_STRICT is set.
5 years ago
Eric Haszlakiewicz
2babb5b780
Update the master branch to version 0.0.14.99
5 years ago
Eric Haszlakiewicz
31ab57ca8b
Fill in the ChangeLog for the upcoming 0.14 release.
5 years ago
Eric Haszlakiewicz
9ed00a694b
Fill in a few more pre-release steps to match what we've done for the 0.14 release.
Move the list of contributors to the AUTHORS file.
5 years ago
Eric Haszlakiewicz
61392c867f
List the set of contributors since the 0.13 branch
5 years ago
Björn Esser
259d5078c4
Clean trailing white-spaces in ChangeLog.
6 years ago
Björn Esser
6b0745ea1f
Convert ChangeLog to valid UTF-8 encoding.
6 years ago
Eric Haszlakiewicz
104aef0a6e
Update the change log for the 0.13.1 release.
7 years ago
Chris Wolfe
1e08150838
pull in fuzzers, add CI scripts later
7 years ago
Eric Haszlakiewicz
0992aac61f
Remove the TRUE and FALSE defines.
7 years ago
Eric Haszlakiewicz
a19031411d
Remove the previously deprecated lh_table_lookup() function, in favor of lh_table_lookup_ex().
7 years ago
Eric Haszlakiewicz
f83cf244cd
Remove the previously deprecated bits.h and the lh_abort() function.
7 years ago
Eric Haszlakiewicz
0631c37c7f
Update the master branch to version 0.13.99
7 years ago
Eric Haszlakiewicz
b34d26ff25
Add a change log entry for the upcoming 0.13 release.
7 years ago
Eric Haszlakiewicz
a42caac805
Copy over note about the 0.12.1 release to the master branch.
9 years ago
Eric Haszlakiewicz
515ba0dfb7
Bump versions up to 0.12.99 since a 0.12 release was just created.
11 years ago
Eric Haszlakiewicz
f84d9c55db
Update the ChangeLog with the changes for the 0.12 release.
Bump the version in the release checklist.
11 years ago
Eric Haszlakiewicz
51993c28c2
Added a json_object_new_double_s() convenience function to allow an exact string representation of a double to be specified when creating the object and use it in json_tokener_parse_ex() so a re-serialized object more exactly matches the input.
Add json_object_free_userdata() and json_object_userdata_to_json_string() too.
12 years ago
Eric Haszlakiewicz
4207147c24
Bump the versions for the non-release branch; add a placeholder section to the change log.
12 years ago
Eric Haszlakiewicz
eee744cd7e
Update the changelog with changes since the 0.10 release.
12 years ago
Remi Collet
197cb1d1c1
Make maximum recursion depth a runtime option
13 years ago
Eric Haszlakiewicz
8ce53f9d1e
Note the rename in the ChangeLog, and update the instructions in the README file.
13 years ago
Eric Haszlakiewicz
1abaaee658
Update the ChangeLog with the rest of the changes that will be included in the 0.10 release.
13 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
Michael Clark
bd0a567673
* 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
15 years ago
Michael Clark
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
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@56 327403b1-1117-474d-bef2-5cb71233fd97
15 years ago
Michael Clark
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
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@54 327403b1-1117-474d-bef2-5cb71233fd97
16 years ago
Brent Miller
126ad95fc4
* Add handling of surrogate pairs
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@53 327403b1-1117-474d-bef2-5cb71233fd97
16 years ago
Brent Miller
f8663fc16f
* 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
16 years ago
Michael Clark
09abeffda3
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
16 years ago
Christopher Watford
b22565d1fd
Update changelog
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@45 327403b1-1117-474d-bef2-5cb71233fd97
16 years ago
Michael Clark
c80ba8dd42
typo fix
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@44 327403b1-1117-474d-bef2-5cb71233fd97
16 years ago