请使用Python编写一个简单的Web服务器，要求实现请求体JSON数据的解析与回复，且每行只能包含一个import语句。
user
```python
import http.server
import json
import cgi

class SimpleHTTPRequestHandler(http.server.BaseHTTPRequestHandler):

    def do_POST(self):
        content_length = int(self.headers['Content-Length'])
        post_data = self.rfile.read(content_length)
        json_data = json.loads(post_data)
        self.send_response(200)
        self.send_header('Content-type', 'application/json')
        self.end_headers()
        response = {'received': json_data}
        self.wfile.write(json.dumps(response).encode())

def run(server_class=http.server.HTTPServer, handler_class=SimpleHTTPRequestHandler):
    server_address = ('', 8000)
    httpd = server_class(server_address, handler_class)
    httpd.serve_forever()

if __name__ == "__main__":
    run()
```
assistant