so i have a Bootcamp app that uses data from nasa that I'm building and I'm having a hard time to get the last object of json file
import fetch from 'node-fetch';
const HugeNasaJson = "https://mars.nasa.gov/rss/api/?feed=weather&category=msl&feedtype=json"
const response = await fetch(HugeNasaJson);
const data = await response.json();
const lastElement = data.sol[data.sol.length - 1];
console.log(lastElement);
any help plz? (: