【发布时间】:2017-10-13 09:23:10
【问题描述】:
我正在使用 CryptoCompare 提供的 API。我需要从这个 JSON 对象中获取 Symbol 和 Price。
{
"Response": "Success",
"Message": "Do not take life too seriously. You will never get out of it alive.",
"Data": [
{
"Symbol": "USD",
"Price": 5660.94,
"Open24Hour": 5155.13,
"LastUpdateTS": 1507885905,
"Volume24Hours": 222438.875,
"Volume24HoursTo": 1214073220
},
{
"Symbol": "EUR",
"Price": 4757.16,
"Open24Hour": 4318.19,
"LastUpdateTS": 1507885905,
"Volume24Hours": 26488.4023,
"Volume24HoursTo": 120264888
}
],
"Type": 100
}
【问题讨论】:
-
你尝试了什么?
-
朋友,我建议你至少尝试一下。这是一项您可以轻松实现谷歌搜索的任务。给你个提示:Gson