![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "CoreMinimal.h"#include "Policies/PrettyJsonPrintPolicy.h"#include "Policies/CondensedJsonPrintPolicy.h"#include "Serialization/JsonDataBag.h"#include "Serialization/JsonTypes.h"#include "Serialization/JsonReader.h"#include "Serialization/JsonSerializer.h"#include "Serialization/JsonSerializable.h"#include "Serialization/JsonSerializerBase.h"#include "Serialization/JsonSerializerReader.h"#include "Serialization/JsonSerializerWriter.h"#include "JsonGlobals.h"Go to the source code of this file.
| #define BEGIN_JSON_SERIALIZER |
Macros used to generate a serialization function for a class derived from FJsonSerializable
| #define END_JSON_SERIALIZER |
| #define JSON_SERIALIZE_ARRAY | ( | JsonName, | |
| JsonArray | |||
| ) | Serializer.SerializeArray(TEXTVIEW(JsonName), JsonArray) |
| #define JSON_SERIALIZE_ARRAY_SERIALIZABLE_WITHDEFAULT | ( | JsonName, | |
| JsonArray, | |||
| ElementType, | |||
| DefaultArray | |||
| ) |
| #define JSON_SERIALIZE_ARRAY_WITHDEFAULT | ( | JsonName, | |
| JsonArray, | |||
| DefaultArray | |||
| ) |
| #define JSON_SERIALIZE_DATETIME_UNIX_TIMESTAMP | ( | JsonName, | |
| JsonDateTime | |||
| ) |
| #define JSON_SERIALIZE_DATETIME_UNIX_TIMESTAMP_MILLISECONDS | ( | JsonName, | |
| JsonDateTime | |||
| ) |
| #define JSON_SERIALIZE_MAP | ( | JsonName, | |
| JsonMap | |||
| ) | Serializer.SerializeMap(TEXTVIEW(JsonName), JsonMap) |
| #define JSON_SERIALIZE_MAP_SAFE | ( | JsonName, | |
| JsonMap | |||
| ) | Serializer.SerializeMapSafe(TEXTVIEW(JsonName), JsonMap) |
| #define JSON_SERIALIZE_MEMBERS_OF | ( | JsonValue | ) | JsonValue.Serialize(Serializer, /*bIsFlatObject*/true) |
| #define JSON_SERIALIZE_OBJECT_SERIALIZABLE | ( | JsonName, | |
| JsonSerializableObject | |||
| ) |
| #define JSON_SERIALIZE_OBJECT_SERIALIZABLE_WITHDEFAULT | ( | JsonName, | |
| JsonSerializableObject, | |||
| JsonSerializableObjectDefault | |||
| ) |
| #define JSON_SERIALIZE_OPTIONAL | ( | JsonName, | |
| OptionalJsonValue | |||
| ) |
| #define JSON_SERIALIZE_OPTIONAL_ARRAY_SERIALIZABLE | ( | JsonName, | |
| OptionalJsonArray, | |||
| ElementType | |||
| ) |
| #define JSON_SERIALIZE_OPTIONAL_OBJECT_SERIALIZABLE | ( | JsonName, | |
| JsonSerializableObject | |||
| ) |
| #define JSON_SERIALIZE_OPTIONAL_VARIANT_END | ( | ) |
Private macros for Variant JSON serialization
| #define JSON_SERIALIZE_PRIVATE_VARIANT_END | ( | ) |
| #define JSON_SERIALIZE_SERIALIZABLE | ( | JsonName, | |
| JsonValue | |||
| ) | UE_DEPRECATED_MACRO(5.6, "JSON_SERIALIZE_SERIALIZABLE has been deprecated, use JSON_SERIALIZE_MEMBERS_OF instead") JSON_SERIALIZE_MEMBERS_OF(JsonValue) |
Macros for begin/end of regular TVariant<...> value, insert JSON_SERIALIZE_VARIANT_IFTYPE_SERIALIZABLE in between BEGIN/END pair
| #define JSON_SERIALIZE_VARIANT_END | ( | ) |
| #define JSON_SERIALIZE_VARIANT_IFTYPE_SERIALIZABLE | ( | TypeName, | |
| Type | |||
| ) |
Macros for serializing a specific sub type of a variant, only to be insert in between (optional) VARIANT begin/end pair