var x = fetch(SOME_URL, SOME_POST_DATA) .then((response) => response.json()) .then((responseJSON) => { // do stuff with responseJSON here... console.log(responseJSON); });