如何解析通过以下开头的JSON响应:{

时间:2017-01-18 15:12:34

标签: java arrays json api

我怎样才能获得"年"来自回应的价值。我知道如何获取所有其他属性。我在编写以对象开头的属性时遇到了麻烦:{

{  
    "statusCode":"1001",
    "message":"Success",
    "response":{  
        "holidays":[  
            {  
            "holidayId":78,
            "year":2015,
            "date":"2015-01-01",
            "day":"Thrusday",
            "occasion":"New Year Day",
            },
           {  
            "holidayId":79,
            "year":2015,
            "date":"2015-01-15",
            "day":"Thrusday",
            "occasion":"Pongal/Sankranthi",
            },
           {  
            "holidayId":80,
            "year":2015,
            "date":"2015-01-26",
            "day":"Monday",
            "occasion":"Republic Day",
           }
       ],
       "year":0
    }
}

0 个答案:

没有答案