FJsonObjectConverter::JsonValueToUProperty

Converts a single JsonValue to the corresponding [FProperty](API\Runtime\CoreUObject\UObject\FProperty) (this may recurse if the property is a [UStruct](API\Runtime\CoreUObject\UObject\UStruct) for instance).

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 JsonValueToUProperty
(
    const TSharedPtr< FJsonValue > & JsonValue,
    FProperty * Property,
    void * OutValue,
    int64 CheckFlags,
    int64 SkipFlags
)

Remarks

Converts a single JsonValue to the corresponding FProperty (this may recurse if the property is a UStruct for instance).

Returns

False if the property failed to serialize

Parameters

Parameter

Description

JsonValue

The value to assign to this property

Property

The FProperty definition of the property we're setting.

OutValue

Pointer to the property instance to be modified.

CheckFlags

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

SkipFlags

Skip sub-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