你是如何通过java中的ObjectOutputStream类通过套接字发送Json对象的,这是我到目前为止所得到的
s = new Socket("192.168.0.100", 7777);
ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());
JSONObject object = new JSONObject();
object.put("type", "CONNECT");
out.writeObject(object);
Run Code Online (Sandbox Code Playgroud)
但这会给java.io.streamcorruptedexception异常提出任何建议吗?