serialize tuples using transit json format