I am trying find a Java lib/api that will allow me to turn the contents of a HTTP Request POST body into a JSON object.
Ideally I would like to use a Apache Sling li
I recommend trying Apache Commons Beanutils.
ServeltRequest request; Map map = request.getParameterMap(); MyObject object = new MyObject(); BeanUtils.populate(object, map); String json = object.toJSON() //using any JSON library