Converting arbitrary json response to list of “things”
问题 I'm having an unusual problem. It might not be a very realistic scenario, but this is what I have gotten myself into, so please bear with me. I have an API that returns Json and I'm using Json.NET to process the Json response. The problem is that the API can return a number of things and I have to be able to deserialize the response the following way: The API can return a single Json object. In this case I have to deserialize it into an ExpandoObject and put it into a List<dynamic> . The API