FJsonSerializable

Base class for a JSON serializable object

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Json

Header

/Engine/Source/Runtime/Json/Public/Serialization/JsonSerializerMacros.h

Include

#include "Serialization/JsonSerializerMacros.h"

Syntax

struct FJsonSerializable

Remarks

Base class for a JSON serializable object

Destructors

Name Description

Public function Virtual

~FJsonSerializable()

Virtualize destructor as we provide overridable functions

Functions

Name Description

Public function Virtual

bool

 

FromJson

(
    const FString& Json
)

Serializes the contents of a JSON string into this object

Public function Virtual

bool

 

FromJson

(
    FString&& Json
)

Serializes the contents of a JSON string into this object

Public function Virtual

bool

 

FromJson

(
    TSharedPtr< FJsonObject > JsonObjec...
)

Public function

void

 

Serialize

(
    FJsonSerializerBase& Serializer,
    bool bFlatObject
)

Abstract method that needs to be supplied using the macros

Public function Const

const FStrin...

 

ToJson

(
    bool bPrettyPrint
)

Used to allow serialization of a const ref

Public function Virtual

const FStrin...

 

ToJson

(
    bool bPrettyPrint
)

Serializes this object to its JSON string form

Public function Virtual Const

void

 

ToJson

(
    TSharedRef< TJsonWriter<> >& JsonW...,
    bool bFlatObject
)

Public function Virtual Const

void

 

ToJson

(
    TSharedRef< TJsonWriter< TCHAR, TCo...,
    bool bFlatObject
)

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