android - Retrofit doesn't recognize nested json response -


i'm using retrofit json response. generated model classes http://www.jsonschema2pojo.org/ doesn't work. problem json response doesn't fit java object. miss something?

{    "status":"ok",    "status_message":"query successful",    "data":{       "movie_count":1,       "limit":20,       "page_number":1,       "movies":[          {             "id":4281,             "url":"https:\/\/yts.to\/movie\/the-third-man-1949",             "imdb_code":"tt0041959",             "title":"the third man",             "title_long":"the third man (1949)",             "slug":"the-third-man-1949",             "year":1949,             "rating":8.3,             "runtime":93,             "genres":[                "film-noir",                "mystery"             ],             "language":"english",             "mpa_rating":"not rated",             "background_image":"https:\/\/s.ynet.io\/assets\/images\/movies\/the_third_man_1949\/background.jpg",             "small_cover_image":"https:\/\/s.ynet.io\/assets\/images\/movies\/the_third_man_1949\/small-cover.jpg",             "medium_cover_image":"https:\/\/s.ynet.io\/assets\/images\/movies\/the_third_man_1949\/medium-cover.jpg",             "state":"ok",             "date_uploaded":"2015-07-13 10:22:11",             "date_uploaded_unix":1436739731          },       ]    },    "@meta":{       "server_time":1436799207,       "server_timezone":"pacific\/auckland",       "api_version":2,       "execution_time":"34.67 ms"    } } 

there's problem @ line number 31 put comma(,) after 2nd bracket { . remove comma , fine .


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -