none
How to convert json string to array of objects without sorting RRS feed

  • Question


  • Json string

    [{"Date":"1","Time":"2007-10-01","Tag":"test","JetSpeed":"note","HeadTemp":"200.00","FaultList":"10.00;"},{"Date":"2","Time":"2007-10-02","Tag":"test2","JetSpeed":"note2","HeadTemp":"300.00","FaultList":"20.00;"},{"Date":"3","Time":"2007-09-01","Tag":"test3","JetSpeed":"note3","HeadTemp":"400.00","FaultList":"30.00;"}]

    Code

    var logtabledata = $.parseJSON(data.Parameters)

    //When i use this gives me arrayobjects Example logtable[0] will be key is Date value is 1 next key is Faultlist value is 10.00 .....it arranges the data in sorted order .i need to preserve the order it comes .How to do this ?How to preserver the order

    • Moved by Caillen Friday, February 7, 2014 1:23 AM
    Wednesday, January 29, 2014 11:07 AM

All replies

  • Hi Manjula,

    In my opinion, this thread is related to ASP.NET forum. So please post thread on ASP.NET forum for more effective response. Thank you for understanding. Please refer to the following link. http://forums.asp.net/.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, January 30, 2014 1:36 AM
  • Ok thanks i do that
    Thursday, January 30, 2014 4:16 AM