@Override
protected void doPut(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
ServletInputStream inputStream = request.getInputStream();
JSONSerializer jsonSerializer = new JSONSerializer();
try {
Object value = jsonSerializer.readObject(inputStream);
jsonSerializer.writeObject(value, System.out);
response.setStatus(200);
} catch(SerializationException exception) {
throw new ServletException(exception);
}