Json 2 dimensional arrau

  • I'm unable to write a 2 dimensional Json array. can someone give me a short example?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Array(3,2,1)

    {"c2array":true,"size":[3,2,1],"data":[[["one"],[4]],[["two"],["five"]],[[3],[6]]]}[/code:jx17tizg]
    [code:jx17tizg]{"c2array":true,"size":[3,2,1],"data":
       [
         [["one"],[4]],
    	  [["two"],["five"]],
    	  [[3],[6]]
       ]
    }[/code:jx17tizg]
    
    Array(3,3,1)
    [code:jx17tizg]{"c2array":true,"size":[3,3,1],"data":[[["one"],[4],["seven"]],[["two"],["five"],["eight"]],[[3],[6],["nine"]]]}[/code:jx17tizg]
    [code:jx17tizg]{"c2array":true,"size":[3,3,1],"data":
         [ 
    	   [["one"],[4],["seven"]],
    	   [["two"],["five"],["eight"]],
    	   [[3],[6],["nine"]]
    	 ]
    }[/code:jx17tizg]
    
    you can use Browser object
    [img="http://lookpic.com/O/i2/1996/vONpZEP6.png"]
    
    check also [url=https://www.scirra.com/forum/array-contents-editor-2d-3d-beta_t120926]Array contents editor[/url]
  • Thank you once again, Korbaach.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)