0

I am using

JavaScriptSerializer serializer = new JavaScriptSerializer();
string s = serializer.Serialize(myresultOld);

to serialize an object myresultOld

Can I output the serialize results sorted by JSON keys?

3
  • 1
    stackoverflow.com/questions/14417235/… Commented Dec 22, 2015 at 14:07
  • Sort it before that in the myResultObject ... Also you can use jquery.sort Commented Dec 22, 2015 at 14:34
  • 1
    May I ask why you need your JSON sorted by key? Commented Dec 22, 2015 at 14:37

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.