Using Retrofit to access JSON arrays

前端 未结 5 1445
情话喂你
情话喂你 2020-12-07 19:18

I thought I understood how to do this, but obviously not. I have my API from Flickr, which begins like so:

jsonFlickrApi({
   \"photos\":{
      \"page\":1,         


        
5条回答
  •  感情败类
    2020-12-07 19:46

    I would suggest using http://www.jsonschema2pojo.org. You can paste your JSON and it will generate the POJOs for you.

    That should do the trick.

提交回复
热议问题