FJsonObjectConverter::JsonObjectStringToUStruct

Converts from a json string containing an object to a [UStruct](API\Runtime\CoreUObject\UObject\UStruct)

Choose your operating system:

Windows

macOS

Linux

References

Module

JsonUtilities

Header

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

Include

#include "JsonObjectConverter.h"

Syntax

template<typename OutStructType>
static bool JsonObjectStringToUStruct
(
    const FString & JsonString,
    OutStructType * OutStruct,
    int64 CheckFlags,
    int64 SkipFlags,
    const bool bStrictMode
)

Remarks

Converts from a json string containing an object to a UStruct

Returns

False if any properties matched but failed to deserialize

Parameters

Parameter

Description

JsonString

String containing JSON formatted data.

OutStruct

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

bStrictMode

Whether to strictly check the json attributes

This API reference document refers to UE 5.1 or earlier. API docs for 5.2 or later are currently being finalized and will be available at a later date.