function simstadtget(){ const userAction = async () => { var myBody = { "cityGMLRef": "campus", "interestedAttributes": [ "buildingFunction", "yearOfConstruction", "usageType" ] } const response = await fetch('https://simstadt.wiomoc.de/dev/', { method: 'POST', body: myBody, // string or object headers: { 'Content-Type': 'application/json' } }); const myJson = await response.json(); //extract JSON from the http response console.log(myJson) // do something with myJson } }