private static Properties extractProperties ( JsonObject json , String fieldName ) { Properties props = new Properties ( ) ; // Extract any other grpc options JsonObject options = getJsonObject ( json , fieldName ) ; if ( options != null ) { for ( Entry < String , JsonValue > entry : options . entrySet ( ) ) { String key = entry . getKey ( ) ; JsonValue value = entry . getValue ( ) ; props . setProperty ( key , getJsonValue ( value ) ) ; } } return props ; }
Extracts all defined properties of the specified field and returns a Properties object