In a Java script, you declare an array as shown below:
var array=[]; array.push();
and for arraylist or object or array you should use json; and serialize it using json using the following code:
var serializedMyObj = JSON.stringify(myObj);
Vaibhav Parmar Dec 20 '13 at 15:26 2013-12-20 15:26
source share