| IStructSerializerBackend
|
Module |
|
Header |
/Engine/Source/Runtime/Serialization/Public/Backends/JsonStructSerializerBackend.h |
Include |
#include "Backends/JsonStructSerializerBackend.h" |
class FJsonStructSerializerBackend : public IStructSerializerBackend
Implements a writer for UStruct serialization using Json.
The underlying Json serializer is currently hard-coded to use UCS2CHAR and pretty-print. This is because the current JsonWriter API does not allow writers to be substituted since it's all based on templates. At some point we will refactor the low-level Json API to provide more flexibility for serialization.
Name | Description | |
---|---|---|
|
FJsonStructSerializerBackend ( |
Use the two-parameter constructor with EStructSerializerBackendFlags::Legacy only if you need backwards compatibility with code compiled prior to 4.22; otherwise use EStructSerializerBackendFlags::Default. |
|
FJsonStructSerializerBackend ( |
Creates and initializes a new instance with the given flags. |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
GetWriter() |
Allow access to the internal JsonWriter to subclasses. |
|
WriteNull ( |
Writes a null value to the serialization output. |
|
|
WritePropertyValue ( |
Writes a property value to the serialization output. |
Name | Description | ||
---|---|---|---|
|
BeginArray ( |
Signals the beginning of an array. |
|
|
BeginStructure ( |
Signals the beginning of a child structure. |
|
|
EndArray ( |
Signals the end of an array. State.ValueProperty points to the property that holds the array. |
|
|
EndStructure ( |
Signals the end of an object. State.ValueProperty points to the property that holds the struct. |
|
|
WriteComment ( |
Writes a comment to the output stream. |
|
|
WriteProperty ( |
Writes a property to the output stream. |
Name | Description | ||
---|---|---|---|
|
FJsonStructSerializerBackend ( |
Use the two-parameter constructor with EStructSerializerBackendFlags::Legacy only if you need backwards compatibility with code compiled prior to 4.22; otherwise use EStructSerializerBackendFlags::Default. |