日期:2014-05-17  浏览次数:20819 次

复杂json文件如何解析成java对象
下边是这个json文件,请那位大牛帮忙看看啊,最近一直都在烦这个,leader天天骂我啊!


{
"tripId":1,
"tripName":"海南",
"createdTime":"2012-10-20",
"user":{
          "userId":1,
          "userName":"Tom",
          "userPhotoPath":"img/1/1.jpg"
         },
"pictures":[
                  {
                     "pictureId":1,
                     "picturePath":"travel_img/10121030/1.jpg",
                      "pictureDescription":"好漂亮",
                      "markerPoint":{
                                      "pointName":"海南天涯海角",
                                      "longitude":88.442433,
                                      "latitude":33.229582
                                     },
                      "createdTime":"2012-10-30",
                      "comments":[
                                           {
                                              "user": {"userId":1,
                                                        "userName":"Tom",
                                                        "userPhotoPath":"1/1.jpg"