code: public void writeObjectInstance(OutputStream out, ObjectInstanceWrapper value) throws IOException {
          // ObjectInstance has no known sub-class.
          writeStartObject(out);
          writeObjectNameField(out, OM_OBJECTNAME, value.objectInstance.getObjectName());
          writeStringField(out, OM_CLASSNAME, value.objectInstance.getClassName());
          writeStringField(out, OM_URL, value.mbeanInfoURL);
          writeEndObject(out);
      }
docs: Encode an ObjectInstanceWrapper instance as JSON:
  {
  "objectName" : ObjectName,
  "className" : String,
  "URL" : URL,
  }
  
  @param out The stream to write JSON to
  @param value The ObjectInstanceWrapper instance to encode.
  The value and value.objectInstance can't be null.
  @throws IOException If an I/O error occurs
  @see #readObjectInstance(InputStream)