Doing a simple JObject.parse(inJson) from Newtonsoft.json gives me the error Unable to cast object of type 'Newtonsoft.Json.Linq.JValue' to type 'Newtonsoft.Json.Linq.JObject

Parse the JSON with JObject.Parse(inJson) and loop through properties. Check if the value is an object, array, or primitive. If it’s an object, process it; if it’s an array, loop through items; if it’s primitive, print it. This handles nested structures dynamically.