public static Map < String , Object > parseYamlString ( String yaml ) throws IOException { ObjectMapper mapper = new ObjectMapper ( new YAMLFactory ( ) ) ; TypeReference < HashMap < String , Object > > typeRef = new TypeReference < HashMap < String , Object > > ( ) { } ; return mapper . readValue ( yaml , typeRef ) ; }
Convenience function for parsing YAML strings .