FJsonObjectConverter::UPropertyToJsonValue

* Converts from a [FProperty](API\Runtime\CoreUObject\UObject\FProperty) to a Json Value 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 TSharedPtr< FJsonValue > UPropertyToJsonValue
(
    FProperty * Property,
    const void * Value,
    int64 CheckFlags,
    int64 SkipFlags,
    const CustomExportCallback * ExportCb,
    FProperty * OuterProperty
)

Remarks

  • Converts from a FProperty to a Json Value using exportText

Returns

The constructed JsonValue from the property

Parameters

Parameter

Description

Property

The property to export

Value

Pointer to the value of the property

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 to override export behavior, if this returns null it will fallback to the default

OuterProperty

If applicable, the Array/Set/Map Property that contains this property

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