Navigation
API > API/Runtime > API/Runtime/JsonUtilities > API/Runtime/JsonUtilities/FJsonObjectConverter
References
| Module | JsonUtilities |
| Header | /Engine/Source/Runtime/JsonUtilities/Public/JsonObjectConverter.h |
| Include | #include "JsonObjectConverter.h" |
| Source | /Engine/Source/Runtime/JsonUtilities/Private/JsonObjectConverter.cpp |
static bool UStructToJsonAttributes
(
const UStruct * StructDefinition,
const void * Struct,
TMap < FString , TSharedPtr < FJsonValue > > & OutJsonAttributes,
int64 CheckFlags,
int64 SkipFlags,
const CustomExportCallback * ExportCb,
EJsonObjectConversionFlags ConversionFlags
)
Remarks
Converts from a UStruct to a set of json attributes (possibly from within a JsonObject) False if any properties failed to write
Parameters
| Name | Description |
|---|---|
| StructDefinition | UStruct definition that is looked over for properties |
| Struct | The UStruct instance to copy out of |
| OutJsonAttributes | Map of attributes 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 |
| ExportCb | Optional callback to override export behavior, if this returns null it will fallback to the default |
| ConversionFlags | Bitwise flags to customize the conversion behavior |