![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NativeJSStructSerializerBackend.h>
Inheritance diagram for FNativeJSStructSerializerBackend:Additional Inherited Members | |
Protected Member Functions inherited from FJsonStructSerializerBackend | |
| TSharedRef< TJsonWriter< UCS2CHAR > > & | GetWriter () |
| template<typename ValueType > | |
| void | WritePropertyValue (const FStructSerializerState &State, const ValueType &Value) |
| void | WriteNull (const FStructSerializerState &State) |
Implements a writer for UStruct serialization using JavaScript.
Based on FJsonStructSerializerBackend, it adds support for certain object types not representable in pure JSON
| FNativeJSStructSerializerBackend::FNativeJSStructSerializerBackend | ( | FNativeJSScriptingRef | InScripting, |
| FMemoryWriter & | Writer | ||
| ) |
Creates and initializes a new instance.
| InScripting | An instance of a web browser scripting obnject. |
|
overridevirtual |
Writes a property to the output stream.
Depending on the context, properties to be written can be either object properties or array elements.
State.KeyProperty points to the key property that holds the data to write. State.KeyData points to the key property's data. State.ValueProperty points to the property that holds the value to write. State.ValueData points to the actual data to write. State.TypeInfo contains the data's type information State.ArrayIndex is the optional index if the data is a value in an array.
| State | The serializer's current state. |
Reimplemented from FJsonStructSerializerBackend.