How to handle Dynamic JSON in Retrofit?

后端 未结 10 2342
余生分开走
余生分开走 2020-11-22 16:23

I am using the retrofit efficient networking library, but I am unable to handle Dynamic JSON which contains single prefix responseMessage which changes to

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 16:55

    In addition to what you told -

    Use Callback Then you can retrieve the fields using regular get method. For more information, go through the javadoc of gson.

    http://google-gson.googlecode.com/svn/tags/1.2.3/docs/javadocs/com/google/gson/JsonObject.html

提交回复
热议问题