我试图解析一些巨大的JSON文件(如http://eu.battle.net/auction-data/258993a3c6b974ef3e6f22ea6f822720/auctions.json使用GSON库()http://code.google.com/p/google- gson /)在JAVA中.
我想知道什么是解析这种大文件(大约80k行)的最佳approch,如果你可能知道可以帮助我处理这个的好API.
一些想法......
我真的很感谢adices/help/messages/:-)谢谢.
我正在尝试使用datetime而不是date来使用Google-chart API构建图表.
基于Google的样本(样本)
var data = new google.visualization.DataTable();
data.addColumn('date', 'Date');
data.addColumn('number', 'Stock low');
data.addColumn('number', 'Stock open');
data.addColumn('number', 'Stock close');
data.addColumn('number', 'Stock high');
data.addRows([
[new Date(2008, 1 ,1), 1000, 1000, 1500, 2000],
[new Date(2008, 1 ,2), 500, 1000, 1500, 2500],
[new Date(2008, 1 ,3), 1000, 1000, 1500, 2000]
]);
Run Code Online (Sandbox Code Playgroud)
我可以玩约会,但我想用日期和时间,比如
data.addRows([
[new Date(2008, 1 ,1, 00, 00, 00), 1000, 1000, 1500, 2000],
[new Date(2008, 1 ,1, 01, 00, 00), 500, 1000, 1500, 2500],
[new Date(2008, 1 ,1, 02, 00, …
Run Code Online (Sandbox Code Playgroud)