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