以下是json响应。
{ “ status”:“成功”, “邮件”:{ “代码”:“ 01010000” }, “数据”:{ “ msgId”:“ 00240201310140000001”, “ tradesInquiry”:“ 6,20180420 ,,, 805151,2 ^ 795393,N,2017070425016382,77575838105600,24924,25,5275,2,1.100000000128036E15,18,1383,1,GIMP01,06637, ,2,6001,1183713348,1,0,N ,, 0,2.8100610400611E14,4098,N,HINDLEVER ,, OPTSTK,801532800,14500,PA ,,,,,, ^ 805151,N,2017070425019234,77575838826496, 29135,735,40130,1,1.100000000137094E15,45,29670,1,SK129,06637,2,6001,1183713360,1,0,N ,, 0,7.00006732002113E14,4096,N,SCI,,OPTSTK,796694400 ,16000,PA ,,,,,,, ” } }
我只希望将粗体数据保存在CSV文件中...请帮助
答案 0 :(得分:0)
假设您在一些存储的变量中具有JSON,可用于处理。您可以使用csv库存储行。
示例代码
sc.hasNextLine()