It can be used to force Tyson to ignore this property during the serialization or deserialization process.
Ignore the type of this property. This means that during the deserialization process the content of the json will be copied directly without any kind of check. The same thing during serialization. Default value: false
Indicates the name of the key on the JSON, this is very useful if you need to have a different name on the class. Eg. If you mark your private property with "_"
Property that indicates whether a value is expected for property during deserialization or not. If the value is missing on the JSON, an exception is thrown. Default value: false
Specifies a type of the property. This is mandatory for arrays (single and multi-type). NOTE: if it's a Date object, you MUST specify the type!
Generated using TypeDoc
These are the options available for the JsonProperty annotation.
JsonPropertyOptions