How to deserialize JSON in .NET Part 1 – Create the app and .JSON file
1 min read

How to deserialize JSON in .NET Part 1 – Create the app and .JSON file

Let’s work with a local json file and deserialize from JSON. You can read more here!

First create a new console app. And next create the local JSON-file.

{
"Date": "2019-08-01T00:00:00-07:00",
  "TemperatureCelsius": 25,
  "Summary": "Hot",
  "DatesAvailable": [
    "2019-08-01T00:00:00-07:00",
    "2019-08-02T00:00:00-07:00"
  ],
  "SummaryWords": [
    "Cool",
    "Windy",
    "Humid"
  ]
}

Great! In the next post we’ll write the class.

Leave a Reply