8 - `json_loadb()`: Decode a string with a given size, useful if the
9 string is not null terminated.
11 - Add ``JSON_ENCODE_ANY`` encoding flag to allow encoding any JSON
12 value. By default, only arrays and objects can be encoded. (#19)
14 - Add ``JSON_REJECT_DUPLICATES`` decoding flag to issue a decoding
15 error if any JSON object in the input contins duplicate keys. (#3)
17 - Add ``JSON_DISABLE_EOF_CHECK`` decoding flag to stop decoding after a
18 valid JSON input. This allows other data after the JSON data.
22 - Fix an additional memory leak when memory allocation fails in
23 `json_object_set()` and friends.
25 - Clear errno before calling `strtod()` for better portability. (#27)
29 - Avoid set-but-not-used warning/error in a test. (#20)
33 - Minor clarifications to documentation.
43 - Replace a few `malloc()` and `free()` calls with their
44 counterparts that support custom memory management.
46 - Fix object key hashing in json_unpack() strict checking mode.
48 - Fix the parentheses in ``JANSSON_VERSION_HEX`` macro.
50 - Fix `json_object_size()` return value.
52 - Fix a few compilation issues.
56 - Enhance portability of `va_copy()`.
58 - Test framework portability enhancements.
62 - Distribute ``doc/upgrading.rst`` with the source tarball.
64 - Build documentation in strict mode in ``make distcheck``.
72 This release is backwards incompatible with the 1.x release series.
73 See the chapter "Upgrading from older versions" in documentation for
76 * Backwards incompatible changes:
78 - Unify unsigned integer usage in the API: All occurences of
79 unsigned int and unsigned long have been replaced with size_t.
81 - Change JSON integer's underlying type to the widest signed integer
82 type available, i.e. long long if it's supported, otherwise long.
83 Add a typedef json_int_t that defines the type.
85 - Change the maximum indentation depth to 31 spaces in encoder. This
86 frees up bits from the flags parameter of encoding functions
87 `json_dumpf()`, `json_dumps()` and `json_dump_file()`.
89 - For future needs, add a flags parameter to all decoding functions
90 `json_loadf()`, `json_loads()` and `json_load_file()`.
94 - `json_pack()`, `json_pack_ex()`, `json_vpack_ex()`: Create JSON
95 values based on a format string.
97 - `json_unpack()`, `json_unpack_ex()`, `json_vunpack_ex()`: Simple
98 value extraction and validation functionality based on a format
101 - Add column, position and source fields to the ``json_error_t``
104 - Enhance error reporting in the decoder.
106 - ``JANSSON_VERSION`` et al.: Preprocessor constants that define the
109 - `json_set_alloc_funcs()`: Set custom memory allocation functions.
111 * Fix many portability issues, especially on Windows.
115 - Add file ``jansson_config.h`` that contains site specific
116 configuration. It's created automatically by the configure script,
117 or can be created by hand if the configure script cannot be used.
118 The file ``jansson_config.h.win32`` can be used without
119 modifications on Windows systems.
121 - Add a section to documentation describing how to build Jansson on
124 - Documentation now requires Sphinx 1.0 or newer.
134 - `json_object_iter_set()`, `json_object_iter_set_new()`: Change
135 object contents while iterating over it.
137 - `json_object_iter_at()`: Return an iterator that points to a
138 specific object item.
140 * New encoding flags:
142 - ``JSON_PRESERVE_ORDER``: Preserve the insertion order of object
147 - Fix an error that occured when an array or object was first
148 encoded as empty, then populated with some data, and then
151 - Fix the situation like above, but when the first encoding resulted
156 - Clarify the documentation on reference stealing, providing an
157 example usage pattern
167 - Fix reference counting on ``true``, ``false`` and ``null``
168 - Estimate real number underflows in decoder with 0.0 instead of
173 - Make ``int32_t`` available on all systems
174 - Support compilers that don't have the ``inline`` keyword
175 - Require Autoconf 2.60 (for ``int32_t``)
179 - Print test names correctly when ``VERBOSE=1``
180 - ``test/suites/api``: Fail when a test fails
181 - Enhance tests for iterators
182 - Enhance tests for decoding texts that contain null bytes
186 - Don't remove ``changes.rst`` in ``make clean``
187 - Add a chapter on RFC conformance
197 - `json_equal()`: Test whether two JSON values are equal
198 - `json_copy()` and `json_deep_copy()`: Make shallow and deep copies
200 - Add a version of all functions taking a string argument that
201 doesn't check for valid UTF-8: `json_string_nocheck()`,
202 `json_string_set_nocheck()`, `json_object_set_nocheck()`,
203 `json_object_set_new_nocheck()`
205 * New encoding flags:
207 - ``JSON_SORT_KEYS``: Sort objects by key
208 - ``JSON_ENSURE_ASCII``: Escape all non-ASCII Unicode characters
209 - ``JSON_COMPACT``: Use a compact representation with all unneeded
214 - Revise and unify whitespace usage in encoder: Add spaces between
215 array and object items, never append newline to output.
216 - Remove const qualifier from the ``json_t`` parameter in
217 `json_string_set()`, `json_integer_set()` and `json_real_set`.
218 - Use ``int32_t`` internally for representing Unicode code points
219 (int is not enough on all platforms)
223 - Convert ``CHANGES`` (this file) to reStructured text and add it to
225 - The test system has been refactored. Python is no longer required
227 - Documentation can now be built by invoking ``make html``
228 - Support for pkg-config
236 * Encode reals correctly, so that first encoding and then decoding a
237 real always produces the same value
238 * Don't export private symbols in ``libjansson.so``
246 * Fix a bug where an error message was not produced if the input file
247 could not be opened in `json_load_file()`
248 * Fix an assertion failure in decoder caused by a minus sign without a
250 * Remove an unneeded include of ``stdint.h`` in ``jansson.h``
258 * All documentation files were not distributed with v1.1; build
259 documentation in make distcheck to prevent this in the future
260 * Fix v1.1 release date in ``CHANGES``
268 * API additions and improvements:
270 - Extend array and object APIs
271 - Add functions to modify integer, real and string values
272 - Improve argument validation
273 - Use unsigned int instead of ``uint32_t`` for encoding flags
275 * Enhance documentation
277 - Add getting started guide and tutorial
279 - General clarifications and cleanup
281 * Check for integer and real overflows and underflows in decoder
282 * Make singleton values thread-safe (``true``, ``false`` and ``null``)
283 * Enhance circular reference handling
284 * Don't define ``-std=c99`` in ``AM_CFLAGS``
285 * Add C++ guards to ``jansson.h``
286 * Minor performance and portability improvements
287 * Expand test coverage
295 * Relax Autoconf version requirement to 2.59
296 * Make Jansson compile on platforms where plain ``char`` is unsigned
297 * Fix API tests for object
305 * Check for integer and real overflows and underflows in decoder
306 * Use the Python json module for tests, or simplejson if the json
308 * Distribute changelog (this file)
316 * Handle EOF correctly in decoder
324 * Fixed broken `json_is_boolean()`