-
Fixing the dreaded JsonConverter JsonException: “Converter read too much or not enough”
Last week I wrote about creating a JsonConverter to handle some funky data conversion problems I was experiencing using System.Text.Json.JsonSerializer’s Deserialize<T>() method. I had some JSON-formatted data coming back from Azure DevOps and when I was parsing it, there were some data type formats that System.Text.Json.JsonSerializer wasn’t especially happy about. The solution to the problem…
-
Fixing JSON parsing exception “value could not be converted” using a JsonConverter
I’ve been working on a tool lately to parse a bunch of work item data from Azure DevOps. Specifically, I needed to call the Work Item Updates REST service in order to get all the state value changes for a bunch of work items. Everything was fine until I needed to convert the JSON result…