code: @Trivial
      private JSONObject toJSONObject(Object... args) {
          OrderedJSONObject json = new OrderedJSONObject();
          for (int i = 0; i < args.length; i += 2)
              json.put(args[i], args[i + 1]);
          return json;
      }
docs: Populates an ordered JSON object with one or more key/value pairs.
  
  @param args even number of alternating keys/values.
  @return ordered JSON object including the specified key/value pairs.