I've got an JSON Array that is of the following structure:
[
[
["ABC", [
[0, 0.139], 0.14]],
["DEF", [
[0, 0.02, 0.06, 0.015], 0.115]],
["GHI", [
[0, 0.0722, 0.9], 0.105]]
]
]
I'm stuck at the part to print it in the format
ABC
First:0, 0.139 Final: 0.14
DEF
First:0,0.02,0.06,0.015 Final: 0.115
This shouldn't be too hard but I'm just not able to crack it and this is what I've tried:
$.each(data, function(i){
var vc = data[0][i];
var cw = data[0][i].[i][1]
var arr = [vc, cw];
vcat.push(arr);
});
and
for(i=0; i<len;i++){
vc.push(data[0][i]);
for(j=0;j<len;j++){
cw.push(data[0][i].data[j])
}
}
}
Both methods failed and I'm not able to figure the correct algorithm to print this tree.
Something, Something Elsein your input data.{"name":…, "values":{"all":[…], "last":…}})