How to flatten a nested JSON from the NASA Weather Insight API in Python
问题 Hello I am trying to display the mars weather from the Mars Insight API. The issue that is occurring is that the data is returning in JSON format and has three levels API Documentation. I can pull the primary key no problem with 3-4 different methods but when I try to get a secondary or tertiary key that is when it falls apart. import requests import json import pandas as pd from pandas.io.json import json_normalize API_url = "https://api.nasa.gov/insight_weather/?api_key