@ SuppressWarnings ( "unchecked" ) public static List < String > readStringListFromConfAsJson ( String key , Configuration conf ) { String json = conf . get ( key ) ; if ( json == null ) { return null ; } return Lists . < String > newArrayList ( ( ( JSONArray ) JSONValue . parse ( json ) ) ) ; }
Reads a list of strings stored as a json array from a configuration