fixing orders json format