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

Hi @prashant1603765, thanks for the prompt response. The problem is that the JSON comes to me at runtime and I have no way to know if there will be an array within the object or not. Is there a more generic way to tackle this? In my case the JSON can be a nested object with arrays within it. Thanks.