|
Stream Chat Unreal SDK
|
Handles converting UStructs to Json objects. More...
Functions | |
| bool | UStructToJsonAttributes (const UStruct *StructDefinition, const void *Struct, TMap< FString, TSharedPtr< FJsonValue > > &OutJsonAttributes, ENamingConvention NamingConvention=ENamingConvention::SnakeCase) |
| Converts from a UStruct to a set of json attributes (possibly from within a JsonObject) More... | |
| FString STREAMJSON_API | UEnumToString (const UEnum *EnumDefinition, int64 Value, ENamingConvention NamingConvention=ENamingConvention::SnakeCase) |
| void STREAMJSON_API | SetObjectField (FJsonObject &TargetJsonObject, const FString &FieldName, const TSharedPtr< FJsonObject > &FieldJsonObject) |
| bool STREAMJSON_API | TryGetObjectField (const FJsonObject &TargetJsonObject, const FString &FieldName, const TSharedPtr< FJsonObject > *&FieldJsonObject) |
Handles converting UStructs to Json objects.
| bool JsonObjectSerialization::UStructToJsonAttributes | ( | const UStruct * | StructDefinition, |
| const void * | Struct, | ||
| TMap< FString, TSharedPtr< FJsonValue > > & | OutJsonAttributes, | ||
| ENamingConvention | NamingConvention = ENamingConvention::SnakeCase |
||
| ) |
Converts from a UStruct to a set of json attributes (possibly from within a JsonObject)
| 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 |
| NamingConvention | JSON keys and values will be formatted according to this naming convention |