I have the following string:
{\"Coords\":[{\"Accuracy\":\"65\",\"Latitude\":\"53.277720488429026\",\"Longitude\":\"-9.012038778269686\",\"Timestamp\":\"Fri J
Try using this $decoded_traces=json_decode($traces, true);
$decoded_traces=json_decode($traces, true);
instead of this $decoded_traces=json_decode($traces);
$decoded_traces=json_decode($traces);
It will convert your stdClass to array. Note that $decoded_traces is array then you can use as you require.
$decoded_traces