code: public boolean inObject() {
        return writeStack.peek() == JsonTokenType.BEGIN_OBJECT || (writeStack.peek() == JsonTokenType.BEGIN_DOCUMENT && !isArray);
     }
docs: Determines if the writer is currently in an object
  
  @return True if in an object, False if not