Is my Json stuff correct?

Hello I am trying to get the json to appear like the example of the weather app challenge.

function success(position) {
    var latitude  = position.coords.latitude;
    var longitude = position.coords.longitude;


fetch('https://fcc-weather-api.glitch.me/api/current?lat='+latitude+'&'+'lon='+longitude)
  .then(function(response){
        if (response.status === 200) {
          console.log(response.json());
        }   
    })
}

navigator.geolocation.getCurrentPosition(success);

The closest thing I have getten to show up is object promise in the console. Any clues on how to move forward.

You’ve basically got it, you’re just missing a step.

The response.json() actually returns another promise so you need another then step.

function success(position) {
  var latitude  = position.coords.latitude;
  var longitude = position.coords.longitude;

  fetch('https://fcc-weather-api.glitch.me/api/current?lat='+latitude+'&'+'lon='+longitude)
  .then(function(response) {
    if (response.status === 200) {
      return response.json();
    }   
  })
  .then(function(data) {
    console.log('mydata', data)
  });
}

navigator.geolocation.getCurrentPosition(success);