SP.DataConvert.populateArray(context, dest, jsonArrayFromServer) Method
Applies to: SharePoint Foundation 2010
Adds the values from one array to another array.
SP.DataConvert.populateArray(context, dest, jsonArrayFromServer);
Parameters
context
Type: SP.ClientRuntimeContext
The client runtime context for accessing data from and invoking methods on a remote object.
dest
Type: ArrayList
The array to which the values are added.
jsonArrayFromServer
Type: Array
The array containing the values to add to the other array.
Remarks
This method calls the SP.DataConvert.fixupType(context, obj) Method method to set the data types of the objects in the array specified by the jsonArrayFromServer parameter if the array is neither null nor undefined before it adds the objects to the destination array.