How to get diffrenet data type from Json file in android studio?
How can I pull data from the following json? Model and API are below. What method should I do to see this data directly in the textview without creating an adapter?
{
"image": "deneme",
"boxes": [
{
"w": 0.2,
"h": 0.1,
"t": 0.1,
"l": 0.2
},
{
"w": 0.2,
"h": 0.1,
"t": 0.5,
"l": 0.5
},
{
"w": 0.2,
"h": 0.1,
"t": 0.8,
"l": 0.8
}
]
}
Model:
data class DataModel
(
@SerializedName("image")...