parse request body to a json object
fixed accessing properties of dict