Navigation
API > API/Runtime > API/Runtime/JsonUtilities > API/Runtime/JsonUtilities/FJsonObjectConverter
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool UStructToJsonObjectString
(
const InStructType& InStruct, |
Templated version; Converts from a UStruct to a json string containing an object, using exportText | JsonObjectConverter.h | |
static bool UStructToJsonObjectString
(
const UStruct* StructDefinition, |
Converts from a UStruct to a json string containing an object, using exportText | JsonObjectConverter.h |
UStructToJsonObjectString(const InStructType &, FString &, int64, int64, int32, const CustomExportCallback *, bool)
Description
Templated version; Converts from a UStruct to a json string containing an object, using exportText
| Name | UStructToJsonObjectString |
| Type | function |
| Header File | /Engine/Source/Runtime/JsonUtilities/Public/JsonObjectConverter.h |
| Include Path | #include "JsonObjectConverter.h" |
template<typename InStructType>
static bool UStructToJsonObjectString
(
const InStructType & InStruct,
FString & OutJsonString,
int64 CheckFlags,
int64 SkipFlags,
int32 Indent,
const CustomExportCallback * ExportCb,
bool bPrettyPrint
)
False if any properties failed to write
Parameters
| Name | Remarks |
|---|---|
| InStruct | The UStruct instance to copy out of |
| OutJsonString | 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 |
| Indent | How many tabs to add to the json serializer |
| ExportCb | Optional callback to override export behavior, if this returns null it will fallback to the default |
| bPrettyPrint | Option to use pretty print (e.g., adds line endings) or condensed print |
UStructToJsonObjectString(const UStruct , const void , FString &, int64, int64, int32, const CustomExportCallback *, bool)
Description
Converts from a UStruct to a json string containing an object, using exportText
| Name | UStructToJsonObjectString |
| 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 UStructToJsonObjectString
(
const UStruct * StructDefinition,
const void * Struct,
FString & OutJsonString,
int64 CheckFlags,
int64 SkipFlags,
int32 Indent,
const CustomExportCallback * ExportCb,
bool bPrettyPrint
)
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 |
| JsonObject | 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 |
| Indent | How many tabs to add to the json serializer |
| ExportCb | Optional callback to override export behavior, if this returns null it will fallback to the default |
| bPrettyPrint | Option to use pretty print (e.g., adds line endings) or condensed print |