我正在使用一個API提供的加密比較。我需要從此JSON對象獲得符號和價格。如何獲取和解析這個JSON對象到Android textview
{
"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
}
那你試試? –
我的朋友,我建議你至少嘗試一下。這是一項您可以輕鬆實現Google搜索的任務。讓我給你一個提示:[Gson](https://github.com/google/gson) –