We're using System.JSON to consume an api call and there doesn't seem to be a way to sort the data.
Running in C# ASP.NET 4 and ASP.NET MVC 3.
Here is an example of out data call:
string requestURL = /*URL to the API*/;
WebRequest request = HttpWebRequest.Create(requestURL);
using (var response = request.GetResponse()) {
return JsonObject.Load(response.GetResponseStream());
}
This function returns a JsonValue which is holding a JsonArray, which is what I'm trying to sort.
You haven't shown how your JSON look like nor by which property you want to order. Let's suppose that you have the following JSON:
and you want to order by the Id property in a descending order. This could be done for example like this: