Data.DBXJSONReflect.TJSONMarshal

From RAD Studio API Documentation
Jump to: navigation, search

Data.DBXJSONReflect.TTypeMarshallerData.DBXJSONReflect.TMarshalUnmarshalBaseSystem.TObjectTJSONMarshal

Delphi

TJSONMarshal = class(TTypeMarshaller<TJSONValue>)

C++

class PASCALIMPLEMENTATION TJSONMarshal : public TTypeMarshaller__1<System::Json::TJSONValue*>

Properties

Type Visibility Source Unit Parent
class public
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Data.DBXJSONReflect Data.DBXJSONReflect

Description

Represents the marshaling class for JSON objects.

The conversion into serializable objects (such as JSON, XML, and so on) is called marshaling. The marshaling process transforms all fields into strings, numbers, and Boolean values. It requires user converters and reverters to transform more complex fields. It is also possible to marshal record types. Both user converters and reverters can be registered with the marshaler and unmarshaler instances, before any processing.

TJSONMarshal converts user objects into TJSONValue objects.

Note: TJSONMarshal relies on Runtime Type Information (RTTI), so you should know that RTTI is not generated for generic methods. Only instantiated types do have RTTI generated. An instantiated type is the combination of a generic with a set of parameters. Therefore, extra care should be taken when using TJSONMarshal and generics.

See Also