How to Save Nested API Data to Bubble Database (Related Entities)?

Hi everyone,

I’m working with an external API that returns nested data, and I’m having trouble figuring out how to properly save this data in Bubble’s database, especially since the data is related to each other. The API returns information about football matches, including fixtures, leagues, bookmakers, and odds. Here’s an example of the structure I’m working with:

{
  "fixture": {
    "id": 1149781,
    "date": "2024-10-18",
    "timezone": "UTC",
    "timestamp": 1729277100
  },
  "league": {
    "id": 358,
    "name": "First Division",
    "country": "Ireland",
    "season": 2024
  },
  "bookmakers": [
    {
      "id": 2,
      "name": "Marathonbet",
      "bets": [
        {
          "id": 1,
          "name": "Match Winner",
          "values": [
            {"value": "Home", "odd": "3.20"},
            {"value": "Draw", "odd": "3.52"},
            {"value": "Away", "odd": "2.03"}
          ]
        }
      ]
    }
  ]
}