code: public static Map<String, Object> toMap(String jsonString) {
      Map<String, Object> map = new HashMap<>();
      return GSON.fromJson(jsonString, map.getClass());
    }
docs: Convert a json encoded string to a Map
  
  @param jsonString json string
  @return the Map encoded in the string