Tag archives for JSON
Sorting JSON Array
There could be a situation where we need to sort the given complex JSON Array object based on the available column/properties. Following is the sample code which demonstrates how can…
How to configure C# WebApi2 to display data in JSON format directly in browser?[Solved]
Recently I was asked a question "How to configure C# WebApi2 to display data in JSON format directly in browser?" by one of my colleague. This is a simple solution…
Issue: The length of the string exceeds the value set on the maxJsonLength property
Problem Statement Many people had faced with their MVC Applications with the following issue. Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the…
Do we need to use Newtonsoft.Json.JsonConvert.DeserializeObject() or Newtonsoft.Json.Linq.JToken.Parse()?
So many people got this question like to deserialize any JSON string should we need to use ()or ()method?? Let begin the explanation uses LINQ-TO-JSON API internally to loop through…