code: public static Properties toProperties(JSONObject jo)  throws JSONException {
          Properties  properties = new Properties();
          if (jo != null) {
              Iterator<String> keys = jo.keys();
              while (keys.hasNext()) {
                  String name = keys.next();
                  properties.put(name, jo.getString(name));
              }
          }
          return properties;
      }
docs: Converts the JSONObject into a property file object.
  @param jo JSONObject
  @return java.util.Properties
  @throws JSONException