FJsonStructDeserializerBackend

Implements a reader for [UStruct](API\Runtime\CoreUObject\UObject\UStruct) deserialization using Json.

Windows
MacOS
Linux

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.

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

Name Description

Public function

FJsonStructDeserializerBackend

(
    FArchive& Archive
)

Creates and initializes a new instance.

Functions

Overridden from IStructDeserializerBackend

Name Description

Public function Virtual Const

const FStrin...

 

GetCurrentPropertyName()

Gets the identifier of the current field.

Public function Virtual Const

FString

 

GetDebugString()

Gets a debug string for the reader's current state.

Public function Virtual Const

const FStrin...

 

GetLastErrorMessage()

Gets the last error message.

Public function Virtual

bool

 

GetNextToken

Reads the next token from the stream.

Public function Virtual

bool

 

ReadProperty

(
    FProperty* Property,
    FProperty* Outer,
    void* Data,
    int32 ArrayIndex
)

Reads the specified property from the stream.

Public function Virtual

void

 

SkipArray()

Skips the array that is currently being read from the stream.

Public function Virtual

void

 

SkipStructure()

Skips the object that is currently being read from the stream.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss