How to parse json object with gson based on dynamic SerializedName in Android

前端 未结 3 988
耶瑟儿~
耶瑟儿~ 2021-01-22 05:22

How can I parse this json objects with Gson this url: http://apis.skplanetx.com/weather/forecast/3hours?appKey=4ce0462a-3884-30ab-ab13-93efb1bc171f&version=1&lon=127.925

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 06:02

    It is not possible, Use following web site which create pojo of your json

    http://www.jsonschema2pojo.org/

    or their is plugin available Gson format for android studio

提交回复
热议问题