Which array item failed deserialization? – System.Text.Json
A recipe for capturing the JSON of the particular array item that failed deserialization with System.Text.Json. When deserializing a response from an external, third-party API it's fairly common to receive a "wrapper" DTO which consists of an array of "item" DTOs and possibly some additional properties. Depending on the API, the list of items could be large and the object graph of each item could be complex. Assume you get well-formed JSON back from the API (so no mismatched curlies…