Class JsonMemberNameAttribute Class

Allows to specify different names for the member in a JSON string.

Constructors:

NameDescription
Public methodJsonMemberNameAttribute() Initializes a new instance of the JsonMemberNameAttribute class.
Public methodJsonMemberNameAttribute(String) Initializes a new instance of the JsonMemberNameAttribute class with specified name.

Properties:

NameDescription
Public propertyIsOutputName Gets or sets whether the name should be used in a generated JSON string as well.
Public propertyJsonName Gets or sets the name of the member in a JSON string.