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
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback