Please see this example: JsFiddle
Question: I have the following JSON Array
y= [ {\"LngTrend\":15,\"DblValue\":10,\"DtmStamp\":13582260
You can build a sparse array, indexed by DtmStamp.
var x = [];
$.each(y, function(i, obj) {
var s = obj.DtmStamp;
if(!x[s]) x[s] = [];
x[s].push(obj.DblValue);
});
//x is now a sparse array, indexed by DtmStamp
This has the advantage over an object, that the array elements are in DtmStamp order.
//To loop through x
for(i in x) {
...
}