I am writing a Java servlet that uses the http://json.org/java/ libraries to read some data from a mssql database and convert the result set to a JSON string. This JSON string is being consumed by a .NET client app. The .net App calls the JavaServlet using HttpWebRequest object. This way I have a json string now in my .net app.
What I would like to do is convert this JSON string to a dataset so that I can display it it in a datagrid. All the examples that I have found online talk about converting a ‘dataset to json’.. any tips?
The Json.NET library makes working with JavaScript and JSON formatted data in .NET simple. Quickly read and write JSON using the JsonReader and JsonWriter or serialize your .NET objects with a single method call using the JsonSerializer.
Json.NET CodePlex Project
See this article