class
#include <core/data/ser/json.hpp>
JSONSerializer Implementation of the abstract Serializer class for serializing to JSON.
Base classes
- class Serializer
- Base class for serializers, which defines the interface for serializing arbitrary data using its reflection metadata.
Constructors, destructors, conversion operators
- JSONSerializer()
- Constructs.
Public functions
Protected functions
-
auto decompose(const reflection::
Type& type, const void* value) -> bool override - Called for each type with no hook defined.
Function documentation
bool cubos:: core:: data:: JSONSerializer:: decompose(const reflection:: Type& type,
const void* value) override protected
Called for each type with no hook defined.
Parameters | |
---|---|
type | Type. |
value | Value. |
Returns | Whether the value was successfully serialized. |
Should recurse by calling write() again as appropriate.