Navigation
API > API/Runtime > API/Runtime/Serialization > API/Runtime/Serialization/Backends
Inheritance Hierarchy
- IStructDeserializerBackend
- FJsonStructDeserializerBackend
References
| Module | Serialization |
| Header | /Engine/Source/Runtime/Serialization/Public/Backends/JsonStructDeserializerBackend.h |
| Include | #include "Backends/JsonStructDeserializerBackend.h" |
Syntax
class FJsonStructDeserializerBackend : public IStructDeserializerBackend
Remarks
Implements a reader for UStruct deserialization using Json.
Note: The underlying Json de-serializer is currently hard-coded to use UCS2CHAR. This is because the current JsonReader 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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FJsonStructDeserializerBackend
(
FArchive& Archive |
Creates and initializes a new instance. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FString & | |||
| EJsonNotation | |||
| TSharedRef< TJsonReader< WIDECHAR > > & | GetReader () |
Overridden from IStructDeserializerBackend
| Type | Name | Description | |
|---|---|---|---|
| const FString & | Gets the identifier of the current field. | ||
| FString | Gets a debug string for the reader's current state. | ||
| const FString & | Gets the last error message. | ||
| bool | GetNextToken
(
EStructDeserializerBackendTokens& OutToken |
Reads the next token from the stream. | |
| bool | ReadProperty
(
FProperty* Property, |
Reads the specified property from the stream. | |
| void | SkipArray () |
Skips the array that is currently being read from the stream. | |
| void | Skips the object that is currently being read from the stream. |