@ SuppressWarnings ( "unchecked" ) public < R > R get ( @ NotNull final String name ) { // do some conversions for JsonObject/JsonArray Object o = context . get ( name ) ; if ( o instanceof Map ) { return ( R ) new JsonObject ( ( Map ) o ) ; } if ( o instanceof List ) { return ( R ) new JsonArray ( ( List ) o ) ; } return ( R ) o ; }
Allow getting properties in a generified way .