danielaparker / jsoncons

A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
https://danielaparker.github.io/jsoncons
Other
700 stars 158 forks source link

Should jsoncons drop support for wjson and wojson? #536

Open danielaparker opened 3 weeks ago

danielaparker commented 3 weeks ago

Currently, jsoncons supports wide character instantiations of the template class basic_json with wchar_t, in particular, wjson and wojson. At the time when we started jsoncons, back in 2013, it seemed like a good idea. However, judging from the issues and discussions, it doesn't seem like many users see any value in this feature. Our most popular extension by far, jsonschema, doesn't currently support wide characters, and nobody has complained.

We're considering removing wide character support from basic_json and related classes. Support for wide characters complicates a lot of things. Removing this support also makes it easier to improve the efficiency of checking unicode, following patterns established by the really fast JSON parsers.

This change would have no impact for current users of json and ojson, or of basic_json with custom template parameters.

Feedback welcome.