In this lecture we'll go over how to work with JSON in .NET using
Newtonsoft.Json: installing via NuGet, basic serialization/deserialization with
JsonConvert (
SerializeObject,
DeserializeObject), fine-tuning via
JsonSerializerSettings and attributes (
JsonProperty,
JsonIgnore,
JsonConverter), working with dictionaries and complex relations, LINQ to JSON via
JObject/
JArray, required/default fields and date formatting. We'll compare with
System.Text.Json and discuss when it's worth choosing Json.NET.