fix json format for orders