Loading ...
Sorry, an error occurred while loading the content.

712Re: [json] Re: Iterating through a huge JSON variable - freezes FF

Expand Messages
  • Mark Ireland
    Feb 7, 2007
    • 0 Attachment
      I wonder if something like this:

      {"RECORDCOUNT":10,"UNIQUEIDS":["js63013","js63009","js63028","js63185","js63039","js63044","js63228","js63246","js63077","js63227"],"COLUMNNAMES":["EM","EY","ISSILO","ISWEATHER","SM","STATIONID","STATIONNAME","SY","X","Y"],"js63013":{"CURRENTROW":1,"EM":8,"EY":2006,"ISSILO":0,"ISWEATHER":1,"SM":4,"STATIONID":63013,"STATIONNAME":"BERAMBING","SY":1943,"X":166,"Y":97},
      . . ....
      and so on
      . . . ...

      "js63227":{"CURRENTROW":10,"EM":10,"EY":2006,"ISSILO":1,"ISWEATHER":1,"SM":3,"STATIONID":63227,"STATIONNAME":"WENTWORTH
      FALLS COUNTRY CLUB","SY":1967,"X":124,"Y":187}}

      would be better like this:

      {"RECORDCOUNT":10,"UNIQUEIDS":["js63013","js63009","js63028","js63185","js63039","js63044","js63228","js63246","js63077","js63227"],"COLUMNNAMES":["ENDMONTH","ENDYEAR","ISSILO","ISWEATHER","STARTMONTH","STATIONID","STATIONNAME","STARTYEAR","XCOORD","YCOORD"],"js63013":{"CURRENTROW":1,"k1":8,"k2":2006,"k3":0,"k4":1,"k5":4,"k6":63013,"k7":"BERAMBING","k8":1943,"k9":166,"k10":97},
      . . ....
      and so on
      . . . ...

      "js63227":{"CURRENTROW":10,"k1":10,"k2":2006,"k3":1,"k4":1,"k5":3,"k6":63227,"k7":"WENTWORTH
      FALLS COUNTRY CLUB","k8":1967,"k9":124,"k10":187}}

      with some code to lookup the columnames.

      _________________________________________________________________
      Advertisement: Fresh jobs daily. Stop waiting for the newspaper. Search now!
      www.seek.com.au
      http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=757263760&_r=Hotmail_EndText_Dec06&_m=EXT
    • Show all 10 messages in this topic