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 TSharedRef < FJsonObject > & Object,
TJsonWriter < CharType, PrintPolicy > & Writer,
bool bCloseWriter
)
Remarks
Serialize the passed Json object into the writer. This will effectively serialize all of the identifier:value pairs of the object enclosed in {} brackets. Example:
- Writer state: [123
Parameter: Object: {"foo": "bar", "baz": "", "": 456} Serialization result: [123, {"foo": "bar", "baz": "", "": 456} Returns true if the serialization was successful, false otherwise.
Parameters
Name | Description |
---|---|
Object | The json object we are serializing |
Writer | The writer the object is written into. |
bCloseWriter | When set to true the Writer will be closed after the serialization. |