|
| template<class CharType > |
| static bool | Deserialize (const TSharedRef< TJsonReader< CharType > > &Reader, typename Policy::FValue &OutValue, EFlags InOptions=EFlags::None) |
| |
| template<class CharType > |
| static bool | Deserialize (TJsonReader< CharType > &Reader, typename Policy::FValue &OutValue, EFlags InOptions=EFlags::None) |
| |
| template<class CharType > |
| static bool | Deserialize (const TSharedRef< TJsonReader< CharType > > &Reader, typename Policy::FArrayOfValues &OutArray, EFlags InOptions=EFlags::None) |
| |
| template<class CharType > |
| static bool | Deserialize (TJsonReader< CharType > &Reader, typename Policy::FArrayOfValues &OutArray, EFlags InOptions=EFlags::None) |
| |
| template<class CharType > |
| static bool | Deserialize (const TSharedRef< TJsonReader< CharType > > &Reader, typename Policy::FMapOfValues &OutMap, EFlags InOptions=EFlags::None) |
| |
| template<class CharType > |
| static bool | Deserialize (TJsonReader< CharType > &Reader, typename Policy::FMapOfValues &OutMap, EFlags InOptions=EFlags::None) |
| |
| template<class CharType , class PrintPolicy > |
| static bool | Serialize (const typename Policy::FValue &Value, const FString &Identifier, const TSharedRef< TJsonWriter< CharType, PrintPolicy > > &Writer, bool bCloseWriter=true) |
| |
| template<class CharType , class PrintPolicy > |
| static bool | Serialize (const typename Policy::FValue &Value, const FString &Identifier, TJsonWriter< CharType, PrintPolicy > &Writer, bool bCloseWriter=true) |
| |
| template<class CharType , class PrintPolicy > |
| static bool | Serialize (const typename Policy::FArrayOfValues &Array, const TSharedRef< TJsonWriter< CharType, PrintPolicy > > &Writer, bool bCloseWriter=true) |
| |
| template<class CharType , class PrintPolicy > |
| static bool | Serialize (const typename Policy::FArrayOfValues &Array, TJsonWriter< CharType, PrintPolicy > &Writer, bool bCloseWriter=true) |
| |
| template<class CharType , class PrintPolicy > |
| static bool | Serialize (const typename Policy::FMapOfValues &Object, const TSharedRef< TJsonWriter< CharType, PrintPolicy > > &Writer, bool bCloseWriter=true) |
| |
| template<class CharType , class PrintPolicy > |
| static bool | Serialize (const typename Policy::FMapOfValues &Object, TJsonWriter< CharType, PrintPolicy > &Writer, bool bCloseWriter=true) |
| |
template<
typename Policy = FJsonSerializerPolicy_JsonObject>
template<class CharType , class PrintPolicy >
Serialize the passed value and identifier into the writer. Empty string identifiers will be ignored when the writer is not writing inside of a map of values and only the value will be serialized. If the writer is in a state where it's currently writing inside of a map of values, then the identifier will always be serialized.
Json Examples:
- Writer state: { "foo": "bar" <writer position> Parameters: Identifier: "" Value: "baz" Serialization result: { "foo": "bar", "": "baz" <writer position> //empty identifier is serialized as a valid key for the key:value pair "":"baz"
Writer state: { "foo": ["bar" <writer position> Parameters: Identifier: "" Value: "baz" Serialization result: { foo: ["bar", "baz" <writer position> //empty identifier is ignored since we are writing into an array and not an object.
- Parameters
-
| Value | The value we are serializing |
| Identifier | The identifier of the value, empty identifiers are ignored outside of maps of values. |
| Writer | The writer the value and identifier are written into. |
| bCloseWriter | When set to true the Writer will be closed after the serialization. |
- Returns
- Returns true if the serialization was successful, false otherwise.
template<
typename Policy = FJsonSerializerPolicy_JsonObject>
template<class CharType , class PrintPolicy >
Serialize the passed value and identifier into the writer. Empty string identifiers will be ignored when the writer is not writing inside of a map of values and only the value will be serialized. If the writer is in a state where it's currently writing inside of a map of values, then the identifier will always be serialized.
Json Examples:
- Writer state: { "foo": "bar" <writer position> Parameters: Identifier: "" Value: "baz" Serialization result: { "foo": "bar", "": "baz" <writer position> //empty identifier is serialized as a valid key for the key:value pair "":"baz"
Writer state: { "foo": ["bar" <writer position> Parameters: Identifier: "" Value: "baz" Serialization result: { foo: ["bar", "baz" <writer position> //empty identifier is ignored since we are writing into an array and not an object.
- Parameters
-
| Value | The value we are serializing |
| Identifier | The identifier of the value, empty identifiers are ignored outside of maps of values. |
| Writer | The writer the value and identifier are written into. |
| bCloseWriter | When set to true the Writer will be closed after the serialization. |
- Returns
- Returns true if the serialization was successful, false otherwise.