public static Optional < String > stringValue ( JsonNode json , String key ) { return Optional . ofNullable ( json . findValue ( key ) ) . map ( JsonNode :: asText ) ; }
Resolve a value as a string from the metadata json .