Using Gson with Interface Types

前端 未结 6 835
生来不讨喜
生来不讨喜 2020-12-03 03:16

I am working on some server code, where the client sends requests in form of JSON. My problem is, there are a number of possible requests, all varying in small implementatio

6条回答
  •  执念已碎
    2020-12-03 03:28

    I found this answer: https://stackoverflow.com/a/28830173 which solved my issue when using Calendar as the interface as the RunTimeType would be GregorianCalendar.

提交回复
热议问题