fixed bug related to parsing JSON object from the request body