Optional settings used while loading a json value to an object. 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 |
SerializeContext * | m_serializeContext = nullptr |
Optional serialize context. If not provided the default instance will be retrieved through an EBus call. | |
JsonRegistrationContext * | m_registrationContext = nullptr |
Optional json registration context. If not provided the default instance will be retrieved through an EBus call. | |
bool | m_clearContainers = false |
Optional settings used while loading a json value to an object.
bool AZ::JsonDeserializerSettings::m_clearContainers = false |
If true this will clear all containers in the object before applying the data from the json document. If set to false any values in the container will be kept and not overwritten. Note that this does not apply to containers where elements have a fixed location such as smart pointers or AZStd::tuple.
JsonSerializationResult::JsonIssueCallback AZ::JsonDeserializerSettings::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 deserializer.