Table of Contents

Bcl.Json.Converters Namespace

Classes

Name Description
EConvertFrom​Json​Error Raised when a JSON value cannot be deserialized to the target type.
EConvertToJsonError Raised when a value cannot be serialized to JSON.
EJsonConverter​NotFound Raised when no converter is registered for the requested type.
TCustomJsonConverter Abstract base class for custom JSON converters.
TJsonAbstract​Object​Converter​Factory Abstract base class for object converter factories with configurable serialization behavior.
TJsonConverters Central registry that manages JSON type converters and converter factories.
TJsonNamingStrategy Abstract base class for JSON naming strategies.

Records

Name Description
TTypeToken Identifies a Delphi type for the JSON converter system.

Interfaces

Name Description
IJsonConverter​Factory Factory interface for creating type-specific JSON converters.
IJsonNamingStrategy Interface for resolving JSON property names from Delphi RTTI members.
IJsonTypeConverter Interface for converting values to and from JSON representation.

Class References

Name Description
TJsonNamingStrategy​Class Class reference type for TJsonNamingStrategy.
TCustomJsonConverter​Class Class reference type for TCustomJsonConverter.

Enumerations

Name Description
TInclusionMode Specifies when a property value should be included in JSON serialization.
TInstanceLoop​Handling Determines how circular object references are handled during serialization.
TInstanceRef​Serialization Controls when instance reference identifiers ($id / $ref) are emitted.
TInstanceType​Serialization Controls when the $type discriminator is emitted for polymorphic objects.
TUnknownMember​Handling Determines how unknown JSON members are handled during deserialization.

Anonymous methods

Name Description
TConverterCreated​Proc Callback invoked when a new converter is created and cached.
TMemberIgnoredProc Callback invoked when a JSON member is ignored during deserialization.