code: public static Map toMap(String json) {
          try {
              return mapper.readValue(json, Map.class);
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Convert a JSON map to a Java Map
  
  @param json JSON map
  @return Java Map.