public boolean inObject() {
      return writeStack.peek() == JsonTokenType.BEGIN_OBJECT || (writeStack.peek() == JsonTokenType.BEGIN_DOCUMENT && !isArray);
   }
public boolean inObject ( ) { return writeStack . peek ( ) == JsonTokenType . BEGIN_OBJECT || ( writeStack . peek ( ) == JsonTokenType . BEGIN_DOCUMENT && ! isArray ) ; }
Determines if the writer is currently in an object

@return True if in an object, False if not