Cbeam
Loading...
Searching...
No Matches
cbeam::json Namespace Reference

Provides JSON-style and nested-map serialization features. It offers methods to convert a wide range of container types (maps, nested_maps) and strings into JSON-like structures, with an emphasis on composability and integration with other Cbeam utilities. The goal is to offer concise, type-safe serialization for both simple and nested data. More...

Classes

struct  map_serializer
 Provides JSON-style serialization logic for any map type Map. More...
 
struct  nested_map_serializer
 Generic serializer for nested_map<Key, Value> types. More...
 
struct  traits
 Defines the traits required for serializing and deserializing objects of type T. More...
 
struct  traits< cbeam::container::nested_map< Key, Value > >
 Specialization of traits for nested_map<Key, Value>, enabling JSON-like serialization. More...
 
struct  traits< const cbeam::container::nested_map< Key, Value > >
 
struct  traits< const std::map< Key, Value > >
 
struct  traits< std::map< Key, Value > >
 Specialization of traits for std::map<Key, Value>, providing JSON serialization. More...
 
struct  traits< std::string >
 Specialization of traits for std::string providing JSON serialization. More...
 

Typedefs

using serialized_object = void*
 Represents a serialized value in memory.
 

Detailed Description

Provides JSON-style and nested-map serialization features. It offers methods to convert a wide range of container types (maps, nested_maps) and strings into JSON-like structures, with an emphasis on composability and integration with other Cbeam utilities. The goal is to offer concise, type-safe serialization for both simple and nested data.

Typedef Documentation

◆ serialized_object

Represents a serialized value in memory.

This type alias defines a generic pointer to represent serialized data in memory. It is used as a handle to manage and manipulate serialized objects within the cbeam framework.