Sourabh Rawat
06/12/2021, 1:34 PMclass Foo(val bar: String)
in. json I have { bar: 'asd', foobar: 'jkl', fb1: 'abc'}
I want to deserialise the above json into class Foo, but also be. able to access foobar & fb1, somehow. without having to add those fields in class Foo specifically.
What I am looking for is something like extraFields mapNikky
06/14/2021, 3:17 PMJsonObject for raw access
and then deserialize the object into your class with ignoreUnknownKeys set on Json