How can I limit the size of JSON POST-ed to my servlet? The below code doesn't work.
ServletContextHandler root = new ServletContextHandler(server, "/");
root.setMaxFormContentSize(10);
The server continues to accept JSON POST body larger than 10 bytes after setting this.