Decoding JSON to the model [Kotlin]
do you know how to decode given JSON to models and find the youngest animal across all of them?
val json_animal = """
[
{
"animal":"Cat",
"colour":"brown",
"data":[
{ "name":"Oscar", "age":5 },
{ "name":"Osa", "age":4 },
{ "name":"Oma", "age":2 },
{ "name":"Ogg", "age":1 },
{ "name":"Or", "age":9 }
]
},
{...