boostorg / json

A C++11 library for parsing and serializing JSON to and from a DOM container in memory.
https://boost.org/libs/json
Boost Software License 1.0
434 stars 97 forks source link

Feature request: (de)serialize msgpack #822

Open pfeatherstone opened 1 year ago

pfeatherstone commented 1 year ago

Would be great if you could serialize/deserialize to/from a json object.

vinniefalco commented 1 year ago

We need to document our position on these other serialization formats - that is, that we do not support them nor do we intend to support them. And we should explain why. We could offer serializers for other formats like MSGPACK as example programs - not part of the public API of the library itself, and without a corresponding parser.

pfeatherstone commented 1 year ago

It's not immediately obvious to me. Making this work with Beast would be awesome. I don't want to send massive stringy JSON objects to the browser. Msgpack is way better

vinniefalco commented 1 year ago

Compress the JSON using gzip