TJson Class
Provides static methods for JSON serialization and deserialization.
Remarks
TJson is the main entry point for converting Delphi values to and from JSON.
It supports serialization and deserialization of arbitrary types using TValue, generics, and type tokens. All methods are class methods and can be called without creating an instance.
Syntax
Unit: Bcl.Json
TJson = class(TObject);
Methods
| Name | Description |
|---|---|
| Serialize | Overloaded Serialize(TValue) Serialize(TValue, TStream) |
| SerializeAs | Overloaded SerializeAs(T) SerializeAs(T, TStream) |
| Deserialize | Overloaded Deserialize(string) Deserialize(TStream) Deserialize(string, TTypeToken) Deserialize(TStream, TTypeToken) |