code: @Nullable
      static JSONObject stringHashToJsonObject(@Nullable Map<String, String> stringStringMap) {
          if (stringStringMap == null) {
              return null;
          }
  
          JSONObject jsonObject = new JSONObject();
          for (String key : stringStringMap.keySet()) {
              try {
                  jsonObject.put(key, stringStringMap.get(key));
              } catch (JSONException jsonException) {
                  // simply skip this value
              }
          }
          return jsonObject;
      }
docs: Converts a String-String {@link Map} into a {@link JSONObject}.
  
  @param stringStringMap the input map
  @return a {@link JSONObject} with the same key-value pairings