FJsonObjectConverter::JsonObjectToUStruct

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

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 JsonObjectToUStruct
(
    const TSharedRef< FJsonObject > & JsonObject,
    const UStruct * StructDefinition,
    void * OutStruct,
    int64 CheckFlags,
    int64 SkipFlags
)

Remarks

Converts from a Json Object to a UStruct, using importText

Returns

False if any properties matched but failed to deserialize

Parameters

Parameter

Description

JsonObject

Json Object to copy data out of

StructDefinition

UStruct definition that is looked over for properties

Struct

The UStruct instance to copy in to

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