-2

jsonからメニューやコンテンツを作成したいのですが、このjson文字列を解析するヒントを教えてください。

ここに私のjsonがあります:

    {
  "menu": {
    "id": "file",
    "value": "File",
    "menuitem": {
      "gadget": [
        {
          "judul_video": "Godigi TV",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": "Kakashi Article"
        },
        {
          "judul_video": "TVRI Nasional",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        },
        {
          "judul_video": "ANTV ",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        }
      ],
      "animasi": [
        {
          "judul_video": "Godigi TV",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": "Kakashi Article"
        },
        {
          "judul_video": "TVRI Nasional",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        },
        {
          "judul_video": "ANTV ",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        }
      ],
      "techno": [
        {
          "judul_video": "Godigi TV",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": "Kakashi Article"
        },
        {
          "judul_video": "TVRI Nasional",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        },
        {
          "judul_video": "ANTV ",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        }
      ],
      "cgt": [
        {
          "judul_video": "Godigi TV",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": "Kakashi Article"
        },
        {
          "judul_video": "TVRI Nasional",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        },
        {
          "judul_video": "ANTV ",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        }
      ],
      "info": [
        {
          "judul_video": "Godigi TV",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": "Kakashi Article"
        },
        {
          "judul_video": "TVRI Nasional",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        },
        {
          "judul_video": "ANTV ",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        }
      ],
      "news": [
        {
          "judul_video": "Godigi TV",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": "Kakashi Article"
        },
        {
          "judul_video": "TVRI Nasional",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        },
        {
          "judul_video": "ANTV ",
          "url_video": "url for video",
          "url_poster": "url for poster",
          "artikel_video": ""
        }
      ]
    }
  }
}

私が出力するのは:アニマシ、ガジェット、テクノなどはリストビューのメニュー用で、それらの配列はコンテンツです。

助けてください、私は検索しようとしていますが、これについてはわかりません。前もって感謝します。

4

1 に答える 1