I am a backend developer but my API is used from an Android app written in Kotlin. So the problem is that the app expects a response with three fields, for example, firstName
, lastName
and age
. But I want to extend my API so the response will look like this:
{
firstName:"",
lastName: "",
age: 0,
someNewField: ""
}
So my question is, will the app (unchanged) still work with this new response with the additional field?
In my experience with .net and js, that additional field will be ignored during response deserialization, but I don't know will it work in the same way with kotlin.