Navigation
API > API/Runtime > API/Runtime/Json > API/Runtime/Json/TJsonSerializer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool Serialize
(
const typename Policy::FArrayOfValues& Array, |
Serialize the passed array of values into the writer. | Serialization/JsonSerializer.h | |
static bool Serialize
(
const typename Policy::FArrayOfValues& Array, |
Serialize the passed array of values into the writer. | Serialization/JsonSerializer.h | |
static bool Serialize
(
const typename Policy::FMapOfValues& Object, |
Serialize the passed map of values into the writer. | Serialization/JsonSerializer.h | |
static bool Serialize
(
const typename Policy::FMapOfValues& Object, |
Serialize the passed map of values into the writer. | Serialization/JsonSerializer.h | |
static bool Serialize
(
const TSharedRef< typename Policy::FElement >& StartingElement, |
Serialization/JsonSerializer.h | ||
static bool Serialize
(
const typename Policy::FValue& Value, |
Serialize the passed value and identifier into the writer. | Serialization/JsonSerializer.h | |
static bool Serialize
(
const typename Policy::FValue& Value, |
Serialize the passed value and identifier into the writer. | Serialization/JsonSerializer.h |
Serialize(const typename Policy::FArrayOfValues &, const TSharedRef< TJsonWriter< CharType, PrintPolicy > > &, bool)
Description
Serialize the passed array of values into the writer. This will effectively serialize all of the values enclosed in [] square brackets.
Json Example:
- Writer state: [123
Parameter: Array: ["foo", "bar", "", 456] Serialization result: [123, ["foo", "bar", "", 456]
| Name | Serialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
| Include Path | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const typename Policy::FArrayOfValues & Array,
const TSharedRef < TJsonWriter < CharType, PrintPolicy > > & Writer,
bool bCloseWriter
)
Returns true if the serialization was successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Array | The array we are serializing |
| Writer | The writer the array is written into. |
| bCloseWriter | When set to true the Writer will be closed after the serialization. |
Serialize(const typename Policy::FArrayOfValues &, TJsonWriter< CharType, PrintPolicy > &, bool)
Description
Serialize the passed array of values into the writer. This will effectively serialize all of the values enclosed in [] square brackets.
Json Example:
- Writer state: [123
Parameter: Array: ["foo", "bar", "", 456] Serialization result: [123, ["foo", "bar", "", 456]
| Name | Serialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
| Include Path | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const typename Policy::FArrayOfValues & Array,
TJsonWriter < CharType, PrintPolicy > & Writer,
bool bCloseWriter
)
Returns true if the serialization was successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Array | The array we are serializing |
| Writer | The writer the array is written into. |
| bCloseWriter | When set to true the Writer will be closed after the serialization. |
Serialize(const typename Policy::FMapOfValues &, const TSharedRef< TJsonWriter< CharType, PrintPolicy > > &, bool)
Description
Serialize the passed map of values into the writer. This will effectively serialize all of the identifier:value pairs of the map, enclosed in {} curly brackets.
Json Example:
- Writer state: [123
Parameter: Object: {"foo": "bar", "baz": "", "": 456} Serialization result: [123, {"foo": "bar", "baz": "", "": 456}
| Name | Serialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
| Include Path | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const typename Policy::FMapOfValues & Object,
const TSharedRef < TJsonWriter < CharType, PrintPolicy > > & Writer,
bool bCloseWriter
)
Returns true if the serialization was successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Object | The map of values we are serializing |
| Writer | The writer the object is written into. |
| bCloseWriter | When set to true the Writer will be closed after the serialization. |
Serialize(const typename Policy::FMapOfValues &, TJsonWriter< CharType, PrintPolicy > &, bool)
Description
Serialize the passed map of values into the writer. This will effectively serialize all of the identifier:value pairs of the map, enclosed in {} curly brackets.
Json Example:
- Writer state: [123
Parameter: Object: {"foo": "bar", "baz": "", "": 456} Serialization result: [123, {"foo": "bar", "baz": "", "": 456}
| Name | Serialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
| Include Path | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const typename Policy::FMapOfValues & Object,
TJsonWriter < CharType, PrintPolicy > & Writer,
bool bCloseWriter
)
Returns true if the serialization was successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Object | The map of values we are serializing |
| Writer | The writer the object is written into. |
| bCloseWriter | When set to true the Writer will be closed after the serialization. |
Serialize(const TSharedRef< typename Policy::FElement > &, TJsonWriter< CharType, PrintPolicy > &, bool)
| Name | Serialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
| Include Path | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const TSharedRef < typename Policy::FElement > & StartingElement,
TJsonWriter < CharType, PrintPolicy > & Writer,
bool bCloseWriter
)
Serialize(const typename Policy::FValue &, const FString &, const TSharedRef< TJsonWriter< CharType, PrintPolicy > > &, bool)
Description
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"
Parameters: Identifier: "" Value: "baz" Serialization result: { "foo": "bar", "": "baz" //empty identifier is serialized as a valid key for the key:value pair "":"baz"
Writer state: { "foo": ["bar"
| Name | Serialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
| Include Path | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const typename Policy::FValue & Value,
const FString & Identifier,
const TSharedRef < TJsonWriter < CharType, PrintPolicy > > & Writer,
bool bCloseWriter
)
Returns true if the serialization was successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| 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. |
Serialize(const typename Policy::FValue &, const FString &, TJsonWriter< CharType, PrintPolicy > &, bool)
Description
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"
Parameters: Identifier: "" Value: "baz" Serialization result: { "foo": "bar", "": "baz" //empty identifier is serialized as a valid key for the key:value pair "":"baz"
Writer state: { "foo": ["bar"
| Name | Serialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
| Include Path | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const typename Policy::FValue & Value,
const FString & Identifier,
TJsonWriter < CharType, PrintPolicy > & Writer,
bool bCloseWriter
)
Returns true if the serialization was successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| 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. |