public static float getFloat ( JsonObject object , String field ) { final JsonValue value = object . get ( field ) ; throwExceptionIfNull ( value , field ) ; return value . asFloat ( ) ; }
Returns a field in a Json object as a float . Throws IllegalArgumentException if the field value is null .