Fabian Steinkogler Fabian Steinkogler - 1 year ago 142
JSON Question

Get and parse a JSON-String from URL

How can i get this json-data-string as an variable and parse it into some usefull fromat?

The url for the string:

Iam pretty new to js and json so some advice on how to get into this topic would be great.

Thank you,

Answer Source

Here's a simple runable example that just logs the content of the data to your console

<!DOCTYPE html>
<html lang="de">
    <meta charset="UTF-8">
    function getData(jsonp){

    var scripts = document.createElement('script');
    scripts.src = 'http://intranet.ooelfv.at/webext2/getjson.php?scope=laufend&callback=getData';

You can access the data by modifying the getData function. For example, to get the title, you can use

function getData(jsonp){
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download