return new JSONPropertyObject(getKey(), getParentKey(), jo);
public void writeStartDocument() throws XMLStreamException { // The document is an object with one property -- the root element current = new JSONPropertyObject(null, null, new JSONObject(convention.isDropRootElement(), convention.getIgnoredElements(), convention.isWriteNullAsString(), convention.isEscapeForwardSlashAlways())); stack.clear(); }