I am trying to deserialize JSON data to a dataset
问题 I thought JSON was supposed to be easy to use. I have a C# .NET Windows form program in Visual Studio 2015 being used as a client consuming a Web API 2 remote server with RestSharp as the HTTP client. the data returned from the API call is in Json format. However, when I try to deserialize the returned Json into a dataset using this statement: DataSet data = (DataSet)JsonConvert.DeserializeObject(response.Content, (typeof(DataSet))); , I get this error: "Unexpected JSON token while reading