Navigation
API > API/Runtime > API/Runtime/Serialization
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.
| Name | FJsonStructDeserializerBackend |
| Type | class |
| Header File | /Engine/Source/Runtime/Serialization/Public/Backends/JsonStructDeserializerBackend.h |
| Include Path | #include "Backends/JsonStructDeserializerBackend.h" |
Syntax
class FJsonStructDeserializerBackend : public IStructDeserializerBackend
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FJsonStructDeserializerBackend
(
FArchive& Archive |
Creates and initializes a new instance. | Backends/JsonStructDeserializerBackend.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| JsonReader | TSharedRef< TJsonReader< WIDECHAR > > | Holds the Json reader used for the actual reading of the archive. | Backends/JsonStructDeserializerBackend.h | |
| LastIdentifier | FString | Holds the name of the last read Json identifier. | Backends/JsonStructDeserializerBackend.h | |
| LastNotation | EJsonNotation | Holds the last read Json notation. | Backends/JsonStructDeserializerBackend.h |
Functions
Public
Overridden from IStructDeserializerBackend
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FString & GetCurrentPropertyName() |
Gets the identifier of the current field. | Backends/JsonStructDeserializerBackend.h | |
virtual FString GetDebugString () |
Gets a debug string for the reader's current state. | Backends/JsonStructDeserializerBackend.h | |
virtual const FString & GetLastErrorMessage() |
Gets the last error message. | Backends/JsonStructDeserializerBackend.h | |
virtual bool GetNextToken
(
EStructDeserializerBackendTokens& OutToken |
Reads the next token from the stream. | Backends/JsonStructDeserializerBackend.h | |
virtual bool ReadProperty
(
FProperty* Property, |
Reads the specified property from the stream. | Backends/JsonStructDeserializerBackend.h | |
virtual void SkipArray() |
Skips the array that is currently being read from the stream. | Backends/JsonStructDeserializerBackend.h | |
virtual void SkipStructure() |
Skips the object that is currently being read from the stream. | Backends/JsonStructDeserializerBackend.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString & GetLastIdentifier() |
Backends/JsonStructDeserializerBackend.h | ||
EJsonNotation GetLastNotation() |
Backends/JsonStructDeserializerBackend.h | ||
TSharedRef< TJsonReader< WIDECHAR > > & GetReader() |
Backends/JsonStructDeserializerBackend.h |