serialization to CBOR and MessagePack values Más...
#include <json.hpp>
Métodos públicos | |
| binary_writer (output_adapter_t< CharType > adapter) | |
| create a binary writer | |
| void | write_bson (const BasicJsonType &j) |
| void | write_cbor (const BasicJsonType &j) |
| void | write_msgpack (const BasicJsonType &j) |
| void | write_ubjson (const BasicJsonType &j, const bool use_count, const bool use_type, const bool add_prefix=true, const bool use_bjdata=false, const bjdata_version_t bjdata_version=bjdata_version_t::draft2) |
serialization to CBOR and MessagePack values
|
inlineexplicit |
create a binary writer
| [in] | adapter | output adapter to write to |
|
inline |
| [in] | j | JSON value to serialize |
|
inline |
| [in] | j | JSON value to serialize |
|
inline |
| [in] | j | JSON value to serialize |
|
inline |
| [in] | j | JSON value to serialize |
| [in] | use_count | whether to use '#' prefixes (optimized format) |
| [in] | use_type | whether to use '$' prefixes (optimized format) |
| [in] | add_prefix | whether prefixes need to be used for this value |
| [in] | use_bjdata | whether write in BJData format, default is false |
| [in] | bjdata_version | which BJData version to use, default is draft2 |