【发布时间】:2014-12-17 05:13:30
【问题描述】:
朋友:
我在 Android 上从远程服务器收到如下响应:
{
"items": {
"persons": [
{
"id": "200120",
"name": "Bill"
},
{
"id": "200121",
"name": "Jim"
}
],
"tasks": [
{
"id": "001",
"name": "Fetch ten books",
"deadline": "5:30 p.m.",
"scores": "10"
},
{
"id": "002",
"name": "Fetch thirty books",
"deadline": "5:30 p.m.",
"scores": "30"
}
],
"intro": "This is a funny game."
},
"otherObj": []
}
我想把它保存到手机上。我认为将其保存到数据库中不是一个好的选择。但是,如果将响应放在SharedPreferences 文件中,它的读取速度不会很快。有没有其他办法?
【问题讨论】:
标签: android json sharedpreferences