Episode

Reading Invalid JSON with System.Text.Json | Welcome to System.Text.Json

with James Montemagno, Matt Soucoup

Join James and Matt as they walk through some advanced features in System.Text.Json (STJ) on how to allow comments, trailing commas, and quoted numbers in JSON when deserializing data. We also talk through how to write numbers as strings if needed.

Chapters

  • 00:00 - Intro
  • 01:26 - Invalid JSON Example
  • 02:50 - Allowing Training Commands and Comments
  • 04:15 - Reading & Writing Quoted Numbers
  • 07:58 - Wrap-up

Additional resources

.NET