private static JsonObject getJsonObject ( JsonObject object , String propName ) { JsonObject obj = null ; JsonValue val = object . get ( propName ) ; if ( val != null && val . getValueType ( ) == ValueType . OBJECT ) { obj = val . asJsonObject ( ) ; } return obj ; }
Returns the specified property as a JsonObject