fixed the json format for successful POST method