Fix JSON rendering of track elements