FJsonObjectConverter::UStructToJsonObject

Templated version of UStructToJsonObject to try and make most of the params.

Windows
MacOS
Linux

References

Module

JsonUtilities

Header

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

Include

#include "JsonObjectConverter.h"

Syntax

template<typename InStructType>
static TSharedPtr< FJsonObject > UStructToJsonObject
(
    const InStructType & InStruct,
    int64 CheckFlags,
    int64 SkipFlags,
    const CustomExportCallback * ExportCb
)

Remarks

Templated version of UStructToJsonObject to try and make most of the params. Also serves as an example use case

Returns

FJsonObject pointer. Invalid if an error occurred.

Parameters

Parameter

Description

InStruct

The UStruct instance to read from

ExportCb

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

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

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