Skip to content

NewtonSoft.Json

Generate Json file

Load Data from Json file

Serialize and Deserialize Objects

Attributes

JsonProperty

  • The JsonProperty attribute is used to specify the name of the property in the JSON representation.
  • You can use it to map a property to a different name in the JSON output.

JsonIgnore

  • The JsonIgnore attribute is used to prevent a property from being serialized or deserialized.
  • You can use it to exclude specific properties from the JSON representation of an object.
  • Use case is to ignore calculated properties