JsonPropertyAttribute Class
Extends Attribute
An attribute to be used to tag a field/property that should be serialized/deserialized via JsonConvert even if marked as internal. It will serialize to the provided property name instead of the default name if provided. It will also deserialize the property name if setup. The default value will be used if deserialized is not possible.
Property name used to convert json
Default value for property
JsonPropertyAttribute ( )
Constructor that defaults to an empty property name
JsonPropertyAttribute ( string propertyName )
Constructor that sets property name
ParameterspropertyNameName to be read from json
JsonPropertyAttribute ( string propertyName,
object defaultValue )
Construct for property name and default value
ParameterspropertyNameName to be read from json
defaultValueDefault value when the json object is missing