1 Reply Latest reply on Feb 5, 2011 10:06 PM by Flex harUI

    JSON.decode changing oder of json string

    flashharry! Level 1

      I have been using json to transfer data back and fourth to a server for a few years now. This is the first time I have come across this.

      Sending associative array as json string but when I decode to an array in Flex the order of the columns is changing.

      array("f"=> record, "d"=> record, "c"=> record, "z"=> record)

      var arr:Array = (JSON.decode( String(event.result) ) as Array);

      Alert.show( ObjectUtil.toString(arr) );

      c = record, d = record, f = record, z = record


      I need the columns to stay in order I send


      thanks in advance