TJsonSerializer Class
Serializes Delphi values to JSON format.
Remarks
TJsonSerializer converts TValue instances to their JSON representation using registered converters. Output can be a string, a TStream, or a TJsonWriter.
Custom converters can be provided to control how specific types are serialized.
Syntax
Unit: Bcl.Json.Serializer
TJsonSerializer = class(TObject);
Constructors
| Name | Description |
|---|---|
| Create | Overloaded Create Create(TJsonConverters, Boolean) |
Methods
| Name | Description |
|---|---|
| Write | Overloaded Write(TValue) Write(TValue, TStream) Write(TValue, TJsonWriter) Write(TValue, TTypeToken) Write(TValue, TTypeToken, TStream) Write(TValue, TTypeToken, TJsonWriter) |
| WriteAs | Overloaded WriteAs(T) WriteAs(T, TStream) WriteAs(T, TJsonWriter) |
| WrittenObjects | Returns the collection of objects that were serialized during write operations. |
Properties
| Name | Description |
|---|---|
| Converters | Provides access to the converter registry used by this serializer. |