Trying to validate the params sent via
HttpServletRequest it seems that when accessing the
request.JSON the params are deleted and cannot be accessed anymore.
More info here: https://github.com/grails/grails-core/issues/10035
How can I validate the values without causing the params to be deleted? I have tried cloning the
HttpServletRequest object and then work with that but without success.
HttpServletRequest sreq = (HttpServletRequest) request
println(sreq.JSON) //from this point params are gone