I am trying to get the car positions (if I can the cars state (gas, how clean, etc) from this site: https://carsharing.mvg-mobil.de/?ref=separate.
As far as I can tell they get their data from this URL:
https://carsharing.mvg-mobil.de/json/stations.php
Now I am having trouble converting that into usable XML format. I tried bringing it into String form by using
JSON.stringify()
and go from there but that didn't seem to work. What im having trouble with are the { and quotation marks
https://carsharing.mvg-mobil.de/json/stations.phpis a JSON file. It needs to be decoded into an object. Try using PHP'sjson_decode()(or JavaScript'sJSON.parse()).JSON.stringify()encodes an object/array as an JSON string. That's the wrong direction here. You already have a string.