I am referring to the solution mentioned in this post. 

[I am trying to convert deeply nested JSON into pandas dataframe](https://stackoverflow.com/questions/55715009/i-am-trying-to-convert-deeply-nested-json-into-pandas-dataframe)

```
import pandas as pd

records = []

for item in d["Data"]:
    records.append(
        {
            "Type": item["CoinInfo"]["Type"],
            "Name": item["CoinInfo"]["Name"],
            "SUPPLY": item["RAW"]["USD"]["SUPPLY"],
        }
    )

df = pd.DataFrame.from_records(records)

df.head()

```

This is helping me to parse the data from dictionary however gives error when the item does not exist. Is there a way to modify this code to return null if the item does not exist? Please help