trails_df = pd.DataFrame(
    [flatten_item(item) for item in json if "type" in item and item["type"] == "trail"]