retrofit2

Retrofit. POST. Android. Kotlin

There is a POST request to the server using the Retrofit library. If the request is successful, a certain object with data is ... d()) .subscribe({ view.onSuccessful() }, { view.onFailure(it.message!!) }) }

Error when parsing JSON using GSON

You need to parse the JSON in android, using GSON, into the Map object. JSON comes from Yandex. Translate. I tried to use th ... How do I fix this ? Sample JSON: { "code": 200, "lang": "en-ru", "text": [ "Здравствуй, Мир!" ] }