def _read_json_request(self): data_string = self.rfile.read( int(self.headers['Content-Length'])) return json.loads(data_string.decode('utf-8'))