Handle Dynamic Response Sometimes Object / Array On Same Key On Android Kotlin
I have a response from api from this, and there is different on ... 'value': [ { '@unit': 'C', '#text': '28' } ] sometimes 'value': { '@unit': 'C',
Solution 1:
Finaly, i have solved this by change JsonDeserializer to TypeAdapterFactory as mentioned on this answer
Post a Comment for "Handle Dynamic Response Sometimes Object / Array On Same Key On Android Kotlin"