Navigation
API > API/Runtime > API/Runtime/JsonUtilities > API/Runtime/JsonUtilities/FJsonObjectConverter
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool JsonObjectToUStruct
(
const TSharedRef< FJsonObject >& JsonObject, |
Templated version of JsonObjectToUStruct | JsonObjectConverter.h | |
static bool JsonObjectToUStruct
(
const TSharedRef< FJsonObject >& JsonObject, |
Converts from a Json Object to a UStruct, using importText | JsonObjectConverter.h |
JsonObjectToUStruct(const TSharedRef< FJsonObject > &, OutStructType , int64, int64, const bool, FText , const CustomImportCallback *)
Description
Templated version of JsonObjectToUStruct
| Name | JsonObjectToUStruct |
| Type | function |
| Header File | /Engine/Source/Runtime/JsonUtilities/Public/JsonObjectConverter.h |
| Include Path | #include "JsonObjectConverter.h" |
template<typename OutStructType>
static bool JsonObjectToUStruct
(
const TSharedRef < FJsonObject > & JsonObject,
OutStructType * OutStruct,
int64 CheckFlags,
int64 SkipFlags,
const bool bStrictMode,
FText * OutFailReason,
const CustomImportCallback * ImportCb
)
False if any properties matched but failed to deserialize
Parameters
| Name | Remarks |
|---|---|
| JsonObject | Json Object to copy data out of |
| OutStruct | The UStruct instance 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 |
| bStrictMode | Whether to strictly check the json attributes |
| OutFailReason | Reason of the failure if any |
| ImportCb | Optional callback to override import behaviour, if this returns false it will fallback to the default |
JsonObjectToUStruct(const TSharedRef< FJsonObject > &, const UStruct , void , int64, int64, const bool, FText , const CustomImportCallback )
Description
Converts from a Json Object to a UStruct, using importText
| Name | JsonObjectToUStruct |
| 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 JsonObjectToUStruct
(
const TSharedRef < FJsonObject > & JsonObject,
const UStruct * StructDefinition,
void * OutStruct,
int64 CheckFlags,
int64 SkipFlags,
const bool bStrictMode,
FText * OutFailReason,
const CustomImportCallback * ImportCb
)
False if any properties matched but failed to deserialize
Parameters
| Name | Remarks |
|---|---|
| JsonObject | Json Object to copy data out of |
| StructDefinition | UStruct definition that is looked over for properties |
| OutStruct | The UStruct instance 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 |
| bStrictMode | Whether to strictly check the json attributes |
| OutFailReason | Reason of the failure if any |
| ImportCb | Optional callback to override import behaviour, if this returns false it will fallback to the default |