code: public void writeTo(T object, TreePruner pruner, DataWriter writer) throws IOException {
          writer.type(null,object.getClass());
          writer.startObject();
          writeNestedObjectTo(object, pruner, writer);
          writer.endObject();
      }
docs: Writes the property values of the given object to the writer.
  
  @param pruner
  Controls which portion of the object graph will be sent to the writer.