def _json_request(self, method, path, data):
response = self._request(method, path, data=data)<EOL>_raise_for_status(response)<EOL>if len(response.data) > <NUM_LIT:0>:<EOL><INDENT>return _json_from_response(response)<EOL><DEDENT>return response.data<EOL>
Issue request against the crate HTTP API.