FJsonObjectConverter::UStructToJsonObject

Converts from a [UStruct](API\Runtime\CoreUObject\UObject\UStruct) to a Json Object, using exportText

Windows
MacOS
Linux

References

Module

JsonUtilities

Header

/Engine/Source/Runtime/JsonUtilities/Public/JsonObjectConverter.h

Include

#include "JsonObjectConverter.h"

Source

/Engine/Source/Runtime/JsonUtilities/Private/JsonObjectConverter.cpp

Syntax

static bool UStructToJsonObject
(
    const UStruct * StructDefinition,
    const void * Struct,
    TSharedRef< FJsonObject > OutJsonObject,
    int64 CheckFlags,
    int64 SkipFlags,
    const CustomExportCallback * ExportCb
)

Remarks

Converts from a UStruct to a Json Object, using exportText

Returns

False if any properties failed to write

Parameters

Parameter

Description

StructDefinition

UStruct definition that is looked over for properties

Struct

The UStruct instance to copy out of

JsonObject

Json Object to be filled in with data from the ustruct

CheckFlags

Only convert properties that match at least one of these flags. If 0 check all properties.

SkipFlags

Skip properties that match any of these flags

ExportCb

Optional callback for types we don't understand. This is called right before falling back to the generic ToString()

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