Pulled out method track_to_json()