code: private Map<String, Object> getMapFromJSON(String json) {
          Map<String, Object> propMap = new HashMap<String, Object>();
          ObjectMapper mapper = new ObjectMapper();
  
          // Initialize string if empty
          if (json == null || json.length() == 0) {
              json = "{}";
          }
  
          try {
              // Convert string
              propMap = mapper.readValue(json, new TypeReference<HashMap<String, Object>>(){});
          } catch (Exception e) {
              ;
          }
          return propMap;
      }
docs: Turn json string into map
  
  @param json
  @return