Hallo!
Folgendes Problem
Ich rufe online eine JSON-Datei und will bestimmte Items aus der Datei in verschiedene Textboxen ausgeben.
JSON-Datei
Was will ich jetzt genau?
Ich will zum Beispiel alle Elemente von "tags" in eine Textbox (txtTags) ausgeben (ohne "" und mit Beistrich).
Das gleiche mit "title" (txtTitle) und mit "description" (txtDesc).
Also ich kann eigentlich nur die ganze JSON-Datei in einer Textbox via Button ausgeben:
Folgendes Problem
Ich rufe online eine JSON-Datei und will bestimmte Items aus der Datei in verschiedene Textboxen ausgeben.
JSON-Datei
XML-Quellcode
- {
- "items": [
- {
- "id": "YE7VzlLtp-4",
- "snippet": {
- "channelId": "UCSMOQeBJ2RAnuFungnQOxLg",
- "title": "Big Buck Bunny",
- "description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\r\n\r\nLicensed under the Creative Commons Attribution license\r\n\r\nhttp://www.bigbuckbunny.org/",
- "tags": [
- "Animation",
- "CGI",
- "Big",
- "Buck",
- "Bunny",
- "Blender",
- "3D",
- "Creative",
- "Commons",
- "blender",
- "open",
- "movie",
- "content",
- "cartoon",
- "animated",
- "animation art"
- ]
- }
- }
- ]
Was will ich jetzt genau?
Ich will zum Beispiel alle Elemente von "tags" in eine Textbox (txtTags) ausgeben (ohne "" und mit Beistrich).
Das gleiche mit "title" (txtTitle) und mit "description" (txtDesc).
Also ich kann eigentlich nur die ganze JSON-Datei in einer Textbox via Button ausgeben: