0.99.2

0.99.1

0.99

0.98.4

0.98.3

New features

API Changes

to

void do_integer_value(int64_t value, const basic_parsing_context<Char>& context) override
void do_uinteger_value(uint64_t value, const basic_parsing_context<Char>& context) override

and your json_output_handler function signatures from

void do_longlong_value(long long value) override
void do_ulonglong_integer_value(unsigned long long value) override

to

void do_integer_value(int64_t value) override
void do_uinteger_value(uint64_t value) override

Non-beaking API Changes

0.98.2 Release

jsoncons supports alternative ways for constructing null, object, and array values.

null:

json a = jsoncons::null_type();  // Using type constructor
json b = json::null_type();      // Using alias
json c(json::null);              // From static data member prototype

object:

json a();                 // Default is empty object
json b = json::object();  // Using type constructor
json c(json::an_object);  // From static data member prototype

array:

json a = json::array();      // Using type constructor
json b = json::make_array(); // Using factory method
json c(json::an_array);      // From static data member prototype

Since C++ has possible order issues with static data members, the jsoncons examples and documentation have been changed to consistently use the other ways, and json::null, json::an_object and json::an_array have been, while still usable, deprecated.

0.98.1 Release

0.98 Release

Bug fixes:

Enhancements:

Changes to extensions:

0.97.2 Release

0.97.1 Release

0.97 Release

The virtual methods do_float_value, do_integer_value, and do_unsigned_value of json_input_handler and json_outputhandler have been restored to do_double_value, do_longlong_value and do_ulonglong_value, and their typedefed parameter types float_type, integer_type, and unsigned_type have been restored to double, long long, and unsigned long long.

The rationale for this reversion is that the change doesn't really help to make the software more flexible, and that it's better to leave out the typedefs. There will be future enhancements to support greater numeric precision, but these will not affect the current method signatures.

0.96 Release

This release includes breaking changes to interfaces. Going forward, the interfaces are expected to be stable.

Breaking changes:

General changes

Bug fixes:

0.95

Enhancements:

Non-breaking Change:

Breaking change (if you've implemented your own input and output handlers, or if you've
passed json events to input and output handlers directly):

The rationale for the method parameter changes is to allow different internal
representations of strings but preserve efficiency.

The rationale for these changes is to follow best C++ practices by making the
json_input_handler and json_output_handler interfaces public non-virtual and
the implementations private virtual. Refer to the documentation and tutorials for details.

Bug fixes:

0.94.1

Bug fixes:

0.94

Bug fixes

Changes

Enhancements

New extensions

0.93 Release

New features

Defect fixes:

0.92a Release

Includes contributed updates for valid compilation and execution in gcc and clang environments

0.92 Release

Breaking change (but only if you have subclassed json_input_handler or json_output_handler)

Non breaking changes (previous features are deprecated but still work)

Enhancements:

Preparation for allocator support:

0.91 Release

This release should be largely backwards compatible with 0.90 and 0.83 with two exceptions:

  1. If you have used object iterators, you will need to replace uses of std::pair with name_value_pair, in particular, first becomes name() and second becomes value().

  2. If you have subclassed json_input_handler, json_output_handler, or json_filter, and have implemented value(const std::string& ..., value(double ..., etc., you will need to modify the names to value_string(const std::string& ..., value_double(double ... (no changes if you are feeding existing implementations.)

The changes are

Other new features:

Incorporates a number of contributions from Pedro Larroy and the developers of the clearskies_core project:

To clean up the interface and avoid too much duplicated functionality, we've deprecated some json methods (but they still work)

make_array

Use json val(json::an_array) or json::make_multi_array<1>(...) instead (but make_array will continue to work)

make_2d_array
make_3d_array

Use make_multi_array<2> and make_multi_array<3> instead

as_vector

Use asstd::vector<int> etc. instead

as_int
as_uint
as_char

Use as, as, and as instead

Release 0.90a

Fixed issue affecting clang compile

Release 0.90

This release should be fully backwards compatible with 0.83.

Includes performance enhancements to json_reader and json_deserializer

Fixes issues with column numbers reported with exceptions

Incorporates a number of patches contributed by Marc Chevrier:

Release 0.83

Optimizations (very unlikely to break earlier code)

Bug fixes

Deprecated features removed

Release 0.82a

Release 0.81

This means that instead of

json obj(json::an_object);
obj["field"] = "field";

you can simply write

json obj;
obj["field"] = "field";

The former notation is still supported, though.

Note that

json arr(json::an_array);

is equivalent to

json arr = json::make_array();

and

json arr(json::an_array);
arr.resize_array(10,0.0);

is equivalent to

json arr = json::make_array(10,0.0);

For consistency the json::make_array notation is now favored in the documentation.

Release 0.71

Release 0.70

Release 0.60b

This release (0.60b) is fully backwards compatible with 0.50.

A change introduced with 0.60 has been reversed. 0.60 introduced an alternative method of constructing a json arrray or object with an initial default constructor, a bug with this was fixed in 0.60a, but this feature and related documentation has been removed because it added complexity but no real value.

Enhancements

0.60 extensions

Release 0.50

This release is fully backwards compatible with 0.4*, and mostly backwards compatible to 0.32 apart from the two name changes in 0.41

Bug fixes

Deprecated

Changes

New features

Non functional enhancements

Release 0.42

Release 0.41

Release 0.40

Release 0.33

Added reserve method to json

Added static make_3d_array method to json

json_reader now configured for buffered reading

Added csv_reader class for reading CSV files and producing JSON events

Fixed bug with explicitly passing output_format in pretty_print.

Release 0.32

Added remove_range method, operator== and operator!= to proxy and json objects

Added static methods make_array and make_2d_array to json

Release 0.31

error_handler method content_error renamed to error

Added error_code to warning, error and fatal_error methods of error_handler

Release 0.30

json_in_stream renamed to json_listener

json_out_stream renamed to json_writer

Added buffer accessor method to parsing_context

Release 0.20

Added parsing_context class for providing information about the
element being parsed.

error_handler methods take message and parsing_context parameters

json_in_stream handlers take parsing_context parameter

Release 0.19

Added error_handler class for json_reader

Made json_exception a base class for all json exceptions

Added root() method to json_deserializer to get a reference to the json value

Removed swap_root() method from json_deserializer

Release 0.18

Renamed serialize() class method to to_stream() in json

Custom data serialization supported through template function specialization of serialize
(reverses change in 0.17)

Release 0.17

Added is_custom() method to json and proxy

get_custom() method renamed to custom_data() in json and proxy

Added clear() method to json and proxy

set_member() method renamed to set()

set_custom() method renamed to set_custom_data()

push_back() method renamed to add() in json and proxy

Added add_custom_data method() in json and proxy

Custom data serialization supported through template class specialization of custom_serialization
(replaces template function specialization of serialize)

Release 0.16

Change to json_out_stream and json_serializer:

void value(const custom_data& value)

removed.

Free function serialize replaces free function to_stream for
serializing custom data.

pretty print tidied up for nested arrays

Release 0.15

Made eof() method on json_reader public, to support reading
multiple JSON objects from a stream.

Release 0.14

Added pretty_print class

Renamed json_stream_writer to json_serializer,
implements pure virtual class json_out_stream

Renamed json_stream_listener to json_deserializer
implements pure virtual class json_in_stream

Renamed json_parser to json_reader, parse to read.

Changed indenting so object and array members start on new line.

Added support for storing user data in json object, and
serializing to JSON.

Release 0.13

Replaced simple_string union member with json_string that
wraps std::basic_string

name() and value() event handler methods on
basic_json_stream_writer take const std::basic_string&
rather than const Char* and length.

Release 0.12

Implemented operator<< for json::proxy

Added to_stream methods to json::proxy

Release 0.11

Added members to json_parser to access and modify the buffer capacity

Added checks when parsing integer values to determine overflow for
long long and unsigned long long, and if overflow, parse them as
doubles.