Clone this wiki locally
jsoncons::owjson typedef basic_json<wchar_t, JsonTraits = o_json_traits<wchar_t>, Allocator = std::allocator<wchar_t>> owjson
owjson 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.
jsoncons library will always rebind the supplied allocator from the template parameter to internal data structures.
The interface is the same as wjson, substituting wide character instantiations of classes -
std::wistream, etc. - for narrow character ones.
wjson, supports object member
setmethods that take an
object_iteratoras the first parameter. But while with
wjsonthat parameter is just a hint that allows optimization, with
owjsonit is the actual location where to insert the member.
setmembers that just take a name and a value always insert the member at the end.
wjson constructs a wide character json value that sorts name-value members alphabetically
json constructs a narrow character json value that sorts name-value members alphabetically
ojson constructs a narrow character json value that preserves the original insertion order of an object's name/value pairs