BufferedReader serverInput = new BufferedReader(
new InputStreamReader(clientSocket.getInputStream(), StringUtil.UTF8));
OutputStreamWriter serverResponse =
new OutputStreamWriter(clientSocket.getOutputStream(), StringUtil.UTF8);
JsonReaderExt jsonParser = new JsonReaderExt(serverInput);
JsonWriterExt jsonWriter = new JsonWriterExt(serverResponse);
) {
try {
jsonParser.setLenient(true);
jsonWriter.setLenient(true);
while(!jsonParser.isEOF()) {
processJsonMessage(jsonParser, jsonWriter);
}
} catch (MalformedJsonException jsonException) {