gpt4 book ai didi

android - 在android中解析JSON对象

转载 作者:太空宇宙 更新时间:2023-11-03 12:23:20 24 4
gpt4 key购买 nike

我有如下 JSON 对象:

[
{
"Project": {
"id": "1",
"project_name": "name"
},
"AllocationDetail": [
{
"id": "1",
"project_id": "1",
"team_name": "ror",
"week_percentage_work": "50",
"in_today": "1",
"actual_hours": "30",
"remaining_hours": "100",
"time_difference": null,
"created": "2012-01-13 15:48:33",
"modified": "2012-01-13 15:48:33"
},
{
"id": "2",
"project_id": "1",
"team_name": "php",
"week_percentage_work": "40",
"in_today": "2",
"actual_hours": "50",
"remaining_hours": "100",
"time_difference": null,
"created": "2012-01-13 15:49:40",
"modified": "2012-01-13 15:49:40"
}
]
}
]

我想在 android 中解析数据并将其存储到数据库中,但我对 Jsonobject 感到困惑谢谢

最佳答案

最好的JSON Tutorial我已经看到了,我从这个教程中学习了 json 解析,希望它能有所帮助

关于android - 在android中解析JSON对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8906490/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com