Fix error when parsing request to json.