Cbeam
|
Provides JSON-style serialization logic for any map type Map
.
More...
#include <map.hpp>
Static Public Member Functions | |
static void | serialize (const Map &map, container::buffer &stream) |
Serializes a map to a JSON-like representation, appending the result to a buffer. | |
Provides JSON-style serialization logic for any map type Map
.
This serializer inserts comma separators between elements and wraps the serialized key-value pairs in braces {}
when used via traits
.
Map | A map-like type providing begin() , end() , and key_type , mapped_type . |
|
inlinestatic |
Serializes a map to a JSON-like representation, appending the result to a buffer.
Each key-value pair is serialized (via traits
) and separated by commas.
map | The map to serialize. |
stream | A buffer to which the JSON-like output is appended. |