如何在带有片段的recyclerview中添加json?

时间:2019-05-30 00:07:12

标签: java json

我有我的JSON,我想将namekilocalories插入各自的textview,然后从盘类型中将name插入另一个textview作为标题。就像我对JSON的所有安排一样。

{
  "date": "23/05/2019",
  "soups": [
   {
  "name": "Sopa de germen",
  "kilocalories": 29,
  "dishType": {
    "name": "SOUP",
    "id": 1
  },
  "id": 208
},    
{
  "name": "Cónsome",
  "kilocalories": 0
}
  ],
  "complements": [
    {
  "name": "Rajas de pimientos",
  "kilocalories": 97,
  "dishType": {
    "name": "COMPLEMENT",
    "id": 2
  },
  "id": 209
}
 ]
}

0 个答案:

没有答案