|
nfx-serialization 0.3.0
Cross-platform C++ JSON serialization library with extensible trait capabilities
|
Serialization options and context. More...
#include <nfx/serialization/json/Serializer.h>
Public Member Functions | |
| Options ()=default | |
| Default constructor. | |
| template<typename U> | |
| void | copyFrom (const typename Serializer< U >::Options &other) |
| Copy values from another serializer's options. | |
Static Public Member Functions | |
| template<typename U> | |
| static Options | createFrom (const typename Serializer< U >::Options &other) |
| Create Options with values copied from another serializer's options. | |
Public Attributes | |
| bool | includeNullFields = false |
| Include fields with null values in output. | |
| bool | prettyPrint = false |
| Format output with indentation (2 spaces per level). | |
| bool | validateOnDeserialize = true |
| Validate data during deserialization. | |
Serialization options and context.
Definition at line 61 of file Serializer.h.
|
inline |
Copy values from another serializer's options.
| U | The source serializer type |
| other | Options from another serializer type |
|
inlinestatic |
Create Options with values copied from another serializer's options.
| U | The source serializer type |
| other | Options from another serializer type |

| bool nfx::serialization::json::Serializer< T >::Options::includeNullFields = false |
Include fields with null values in output.
Definition at line 63 of file Serializer.h.
| bool nfx::serialization::json::Serializer< T >::Options::prettyPrint = false |
Format output with indentation (2 spaces per level).
Definition at line 64 of file Serializer.h.
| bool nfx::serialization::json::Serializer< T >::Options::validateOnDeserialize = true |
Validate data during deserialization.
Definition at line 65 of file Serializer.h.