Como consumir essa estrutura JSON via Retrofit 2?
Olá Eu tenho uma estrutura json e preciso obter os dados do URL. Como eu posso fazer isso? O que são classes e funções. Por favor me ajude. Obrigado.
aqui está o meu json.
{
nodes: [
{
node: {
title: "...",
field_news_image: [
{title="..."},
{title="..."},
{title="..."},
{title="..."},
{title="..."},
{title="..."},
{title="..."}
],
body: "...",
field_category: "...",
created: "..."
}
},
{
node: {
title: "...",
field_news_image: [
{title="..."},
{title="..."},
{title="..."},
{title="..."},
{title="..."}
],
body: "...",
field_category: "...",
created: "..."
}
}
]
}