typedef basic_json<wchar_t,
ImplementationPolicy = original_order_policy,
Allocator = std::allocator<wchar_t>> wojson
The wojson
class is an instantiation of the basic_json
class template that uses wchar_t
as the character type. The original insertion order of an object's name/value pairs is preserved.
The jsoncons
library will always rebind the supplied allocator from the template parameter to internal data structures.
#include <jsoncons/json.hpp>
The interface is the same as wjson, substituting wide character instantiations of classes - std::wstring
, std::wistream
, etc. - for utf8 character ones.
-
wojson
, likewjson
, supports object memberinsert_or_assign
methods that take anobject_iterator
as the first parameter. But while withwjson
that parameter is just a hint that allows optimization, withwojson
it is the actual location where to insert the member. -
In
wojson
, theinsert_or_assign
members that just take a name and a value always insert the member at the end.