Cbeam
Loading...
Searching...
No Matches
cbeam::json::nested_map_serializer< Map > Struct Template Reference

Generic serializer for nested_map<Key, Value> types. More...

#include <nested_map.hpp>

Static Public Member Functions

static void serialize (const Map &map, container::buffer &stream)
 Serializes a nested map to JSON-like text, appending it to a buffer.
 

Detailed Description

template<typename Map>
struct cbeam::json::nested_map_serializer< Map >

Generic serializer for nested_map<Key, Value> types.

The serializer writes each entry from map.data and recursively serializes any map.sub_tables. The result is appended to a buffer in a JSON-like style (braces, commas, etc.).

Template Parameters
MapThe type of the nested map (e.g., cbeam::container::nested_map<Key, Value>).

Member Function Documentation

◆ serialize()

template<typename Map>
static void cbeam::json::nested_map_serializer< Map >::serialize ( const Map & map,
container::buffer & stream )
inlinestatic

Serializes a nested map to JSON-like text, appending it to a buffer.

Parameters
mapThe nested map to serialize.
streamThe buffer where the serialized output is written.

The documentation for this struct was generated from the following file: