converting resulting tracks to JSON