fix invalid json in swift trail