小编ste*_*lla的帖子

JSON用GSON解析

我有以下Json字符串.如何在Java中使用Gson解析这种Json?任何帮助将不胜感激.

{
"acclst":[{
        "accountInfoData":[{
                "userId":9,
                "rid":"1-Z5S3",
                "acnme":"acc_1234.",
                "actpe":"Fabricator / Distributor",
                "mph":"2660016354",
                "euse":"Biofuels",
                "com":"0",
                "sta":"Active",
                "stem":"BBUSER5",
                "wsite":"",
                "fax":"",
                "zone":"",
                "crted":"BBUSER4",
                "statusX":1,
                "partyId":0,
                "address":[]
            }
        ]
    }
],
"conlst":[],
"actlst":[],
"prolst":[],
"code":"200"
}
Run Code Online (Sandbox Code Playgroud)

java android

2
推荐指数
1
解决办法
4573
查看次数

如何使用Gson解析这个Json

如何使用Gson解析这个Json并显示Placetype _Name和Place详细信息?

我有这个json,需要帮助解析并显示Placetype _Name和Place详细信息.

{
  "PlacesList": {
"PlaceType": [
  {
    "-Name": "Airport",
    "Places": {
      "Place": [
        {
          "name": "Juhu Aerodrome",
          "latitude": "19.09778",
          "longitude": "72.83083",
          "description": "Juhu Aerodrome is an airport that serves the metropolitan" 
        },
        {
          "name": "Chhatrapati Shivaji International Airport",
          "latitude": "19.09353",
          "longitude": "72.85489",
          "description": "Chhatrapati Shivaji International Airport  "
        }
      ]
    }
  },
  {
    "-Name": "Mall",
    "Places": {
      "Place": [
        {
          "name": "Infinity",
          "latitude": "19.14030",
          "longitude": "72.83180",
          "description": "This Mall is one of the best places for all …
Run Code Online (Sandbox Code Playgroud)

android json gson

-2
推荐指数
1
解决办法
308
查看次数

标签 统计

android ×2

gson ×1

java ×1

json ×1