How to sum time in php from a json file? : <p>I have an API from a .json url that gives me an ID, the distance, and the duration in HH:MM format.</p>

<pre><code>[
    {
        "id": "210",
        "distance": "299",
        "duration": "01:31"
    },
    {
        "id": "209",
        "distance": "279",
        "duration": "01:22"
    },
    {
        "id": "209",
        "distance": "261",
        "duration": "01:15"
    }
]
</code></pre>

<p>I'd like to make the sum of an ID's duration so that here 01:22 + 01:15 would give me 02:37 but I have no idea how to do that.</p>

<p>Any help ?</p>

<p>Thanks,<br>
Snax</p>
