code: public void writeJMX(OutputStream out, JMXServerInfo value) throws IOException {
          writeStartObject(out);
          writeIntField(out, OM_VERSION, value.version);
          writeStringField(out, OM_MBEANS, value.mbeansURL);
          writeStringField(out, OM_CREATEMBEAN, value.createMBeanURL);
          writeStringField(out, OM_MBEANCOUNT, value.mbeanCountURL);
          writeStringField(out, OM_DEFAULTDOMAIN, value.defaultDomainURL);
          writeStringField(out, OM_DOMAINS, value.domainsURL);
          writeStringField(out, OM_NOTIFICATIONS, value.notificationsURL);
          writeStringField(out, OM_INSTANCEOF, value.instanceOfURL);
          writeStringField(out, OM_FILE_TRANSFER, value.fileTransferURL);
          writeStringField(out, OM_API, value.apiURL);
          writeStringField(out, OM_GRAPH, value.graphURL);
          writeEndObject(out);
      }
docs: Encode a JMX instance as JSON:
  {
  "version" : Integer,
  "mbeans" : URL,
  "createMBean" : URL,
  "mbeanCount" : URL,
  "defaultDomain" : URL,
  "domains" : URL,
  "notifications" : URL,
  "instanceOf" : URL
  }
  
  @param out The stream to write JSON to
  @param value The JMX instance to encode. Can't be null.
  @throws IOException If an I/O error occurs
  @see #readJMX(InputStream)