Table of Contents

JsonPropertyAttribute Class

Specifies a custom JSON property name for a field or property.

Remarks

When applied without a name, the member is included in serialization with its default name.

Syntax

Unit: Bcl.Json.Attributes

JsonPropertyAttribute = class(TCustomAttribute);

Constructors

Name Description
Create Creates the attribute with a custom JSON property name.

Properties

Name Description
Name Gets the custom JSON property name, or empty string for the default name.