Ich möchte eine json Datei mit javascript erstellen und habe dazu folgendes versucht:
Hier die URL: http://schulehaho.bplaced.net/sender.html
Leider wird das Ergebnis nicht als json erkannt.
Laut https://jsonformatter.curiousconcept.com/ bekomme ich folgende Meldungen:
Hoffe es kann mir jemand hier weiterhelfen.
Vielen Dank
HTML:
<script>
document.write(JSON.stringify({sender:['http://onair.krone.at/kronehit.mp3', 'http://mp3stream1.apasf.apa.at:8000/' ]}));
</script>
Leider wird das Ergebnis nicht als json erkannt.
Laut https://jsonformatter.curiousconcept.com/ bekomme ich folgende Meldungen:
HTML:
Inserted missing quotes
Replaced incorrect quotes
Invalid media type, expecting appplication/javascript
Inaldi encoding, expecting UTF-8
Expecing ), or ), not )); </script>
Hoffe es kann mir jemand hier weiterhelfen.
Vielen Dank