Navigation
API > API/Runtime > API/Runtime/Json > API/Runtime/Json/Serialization > API/Runtime/Json/Serialization/FJsonSerializer > API/Runtime/Json/Serialization/FJsonSerializer/Serialize
References
Module | Json |
Header | /Engine/Source/Runtime/Json/Public/Serialization/JsonSerializer.h |
Include | #include "Serialization/JsonSerializer.h" |
template<class CharType, class PrintPolicy>
static bool Serialize
(
const TArray < TSharedPtr < FJsonValue > > & Array,
const TSharedRef < TJsonWriter < CharType, PrintPolicy > > & Writer,
bool bCloseWriter
)
Remarks
Serialize the passed array of json values into the writer. This will effectively serialize all of the values enclosed in [] square brackets. Example:
- Writer state: [123
Parameter: Array: ["foo", "bar", "", 456] Serialization result: [123, ["foo", "bar", "", 456] Returns true if the serialization was successful, false otherwise.
Parameters
Name | Description |
---|---|
Array | The json 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. |