FJsonDataBag

Useful if you just want access to the underlying [FJsonObject](API\Runtime\Json\Dom\FJsonObject) (for cases where the schema is loose or an outer system will do further de/serialization)

Windows
MacOS
Linux

Inheritance Hierarchy

FJsonSerializable

FJsonDataBag

References

Module

Json

Header

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

Include

#include "Serialization/JsonSerializerMacros.h"

Syntax

struct FJsonDataBag : public FJsonSerializable

Remarks

Useful if you just want access to the underlying FJsonObject (for cases where the schema is loose or an outer system will do further de/serialization)

Variables

Name Description

Public variable

TSharedPtr< FJs...

 

JsonObject

Functions

Name Description

Public function Const

bool

 

GetBool

(
    const FString& Key
)

Public function Const

double

 

GetDouble

(
    const FString& Key
)

Public function Const

TSharedPtr< ...

 

GetField

(
    const FString& Key
)

Public function Const

FString

 

GetString

(
    const FString& Key
)

Public function

void

 

SetField

(
    const FString& Key,
    Arg&& Value
)

Public function

void

 

SetFieldJson

(
    const FString& Key,
    const TSharedPtr< FJsonValue >& Va...
)

Overridden from FJsonSerializable

Name Description

Public function Virtual

void

 

Serialize

(
    FJsonSerializerBase& Serializer,
    bool bFlatObject
)

Abstract method that needs to be supplied using the macros

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