@ SuppressWarnings ( "unchecked" ) public < V > V body ( ) { if ( body != null ) { if ( body instanceof Map ) { return ( V ) new JsonObject ( ( Map ) body ) ; } if ( body instanceof List ) { return ( V ) new JsonArray ( ( List ) body ) ; } } return ( V ) body ; }
The request body and eventually a parsed version of it in json or map