Stream Chat Unreal SDK
|
Handles converting Json objects to UStructs. More...
Functions | |
STREAMJSON_API bool | JsonObjectToUStruct (const TSharedRef< FJsonObject > &JsonObject, const UStruct *StructDefinition, void *OutStruct) |
Converts from a Json Object to a UStruct, using importText. More... | |
template<typename OutStructType > | |
bool | JsonObjectToUStruct (const TSharedRef< FJsonObject > &JsonObject, OutStructType *OutStruct) |
Templated version of JsonObjectToUStruct. More... | |
bool | JsonAttributesToUStruct (const TMap< FString, TSharedPtr< FJsonValue > > &JsonAttributes, const UStruct *StructDefinition, void *OutStruct) |
Converts a set of json attributes (possibly from within a JsonObject) to a UStruct, using importText. More... | |
STREAMJSON_API bool | JsonObjectStringToJsonObject (const FString &JsonString, TSharedPtr< FJsonObject > &OutObject) |
Converts from a json string containing an object to a UStruct. More... | |
template<typename OutStructType > | |
bool | JsonObjectStringToUStruct (const FString &JsonString, OutStructType *OutStruct) |
Converts from a json string containing an object to a UStruct. More... | |
STREAMJSON_API bool | ParseIso8601 (const TCHAR *DateTimeString, FDateTime &OutDateTime) |
Handles converting Json objects to UStructs.
bool JsonObjectDeserialization::JsonAttributesToUStruct | ( | const TMap< FString, TSharedPtr< FJsonValue > > & | JsonAttributes, |
const UStruct * | StructDefinition, | ||
void * | OutStruct | ||
) |
Converts a set of json attributes (possibly from within a JsonObject) to a UStruct, using importText.
JsonAttributes | Json Object to copy data out of |
StructDefinition | UStruct definition that is looked over for properties |
OutStruct | The UStruct instance to copy in to |
bool JsonObjectDeserialization::JsonObjectStringToJsonObject | ( | const FString & | JsonString, |
TSharedPtr< FJsonObject > & | OutObject | ||
) |
Converts from a json string containing an object to a UStruct.
JsonString | String containing JSON formatted data. |
OutObject | JsonObject to created from parsed JSON text |
bool JsonObjectDeserialization::JsonObjectStringToUStruct | ( | const FString & | JsonString, |
OutStructType * | OutStruct | ||
) |
Converts from a json string containing an object to a UStruct.
JsonString | String containing JSON formatted data. |
OutStruct | The UStruct instance to copy in to |
bool JsonObjectDeserialization::JsonObjectToUStruct | ( | const TSharedRef< FJsonObject > & | JsonObject, |
const UStruct * | StructDefinition, | ||
void * | OutStruct | ||
) |
Converts from a Json Object to a UStruct, using importText.
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 |
bool JsonObjectDeserialization::JsonObjectToUStruct | ( | const TSharedRef< FJsonObject > & | JsonObject, |
OutStructType * | OutStruct | ||
) |
Templated version of JsonObjectToUStruct.
JsonObject | Json Object to copy data out of |
OutStruct | The UStruct instance to copy in to |