Navigation
API > API/Runtime > API/Runtime/JsonUtilities > API/Runtime/JsonUtilities/FJsonObjectConverter
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedPtr< FJsonObject > UStructToJsonObject
(
const InStructType& InStruct, |
Templated version of UStructToJsonObject to try and make most of the params. | JsonObjectConverter.h | |
static bool UStructToJsonObject
(
const UStruct* StructDefinition, |
Converts from a UStruct to a Json Object, using exportText | JsonObjectConverter.h |
UStructToJsonObject(const InStructType &, int64, int64, const CustomExportCallback *)
Description
Templated version of UStructToJsonObject to try and make most of the params. Also serves as an example use case
| Name | UStructToJsonObject |
| Type | function |
| Header File | /Engine/Source/Runtime/JsonUtilities/Public/JsonObjectConverter.h |
| Include Path | #include "JsonObjectConverter.h" |
template<typename InStructType>
static TSharedPtr < FJsonObject > UStructToJsonObject
(
const InStructType & InStruct,
int64 CheckFlags,
int64 SkipFlags,
const CustomExportCallback * ExportCb
)
FJsonObject pointer. Invalid if an error occurred.
Parameters
| Name | Remarks |
|---|---|
| InStruct | The UStruct instance to read from |
| ExportCb | Optional callback to override export behavior, if this returns null it will fallback to the default |
| 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 |
UStructToJsonObject(const UStruct , const void , TSharedRef< FJsonObject >, int64, int64, const CustomExportCallback *, EJsonObjectConversionFlags)
Description
Converts from a UStruct to a Json Object, using exportText
| Name | UStructToJsonObject |
| Type | function |
| Header File | /Engine/Source/Runtime/JsonUtilities/Public/JsonObjectConverter.h |
| Include Path | #include "JsonObjectConverter.h" |
| Source | /Engine/Source/Runtime/JsonUtilities/Private/JsonObjectConverter.cpp |
static bool UStructToJsonObject
(
const UStruct * StructDefinition,
const void * Struct,
TSharedRef < FJsonObject > OutJsonObject,
int64 CheckFlags,
int64 SkipFlags,
const CustomExportCallback * ExportCb,
EJsonObjectConversionFlags ConversionFlags
)
False if any properties failed to write
Parameters
| Name | Remarks |
|---|---|
| StructDefinition | UStruct definition that is looked over for properties |
| Struct | The UStruct instance to copy out of |
| OutJsonObject | Json Object to be filled in with data from the ustruct |
| 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 |