İ am using D3. default code is TSV. as like
d3.tsv("data.tsv",function(d){return{ day:+d.day, hour:+d.hour, value:+d.value };},
But i want to convert JSON (xsjs) as like
d3.json("sample.xsjs",function(d){ return{ day:+d[0].day, hour:+d[0].hour, value:+d[0].value };},
How can i solve this problem ?