Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::JsonSerializerSettings Struct Referencefinal

Optional settings used while storing an object to a json value. More...

#include <JsonSerializationSettings.h>

Public Attributes

JsonSerializationMetadata m_metadata
 Metadata can be used to pass additional information to serializers. Look at individual serializers for available options.
 
JsonSerializationResult::JsonIssueCallback m_reporting
 
SerializeContextm_serializeContext = nullptr
 Optional serialize context. If not provided the default instance will be retrieved through an EBus call.
 
JsonRegistrationContextm_registrationContext = nullptr
 Optional json registration context. If not provided the default instance will be retrieved through an EBus call.
 
bool m_keepDefaults = false
 

Detailed Description

Optional settings used while storing an object to a json value.

Member Data Documentation

◆ m_keepDefaults

bool AZ::JsonSerializerSettings::m_keepDefaults = false

If true default value will be stored, otherwise only changed values will be stored. This will automatically be set to false if the Store function is given a default object.

◆ m_reporting

JsonSerializationResult::JsonIssueCallback AZ::JsonSerializerSettings::m_reporting

Optional callback when issues are encountered. If not provided reporting will be forwarded to the default issue reporting. This can also be used to change the returned result code to alter the behavior of the serializer.


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