/// <summary> /// Attempts to read a null value. /// </summary> /// <exception cref="TypeException">if the next token is not a null</exception> /// <exception cref="SyntaxException">if there is a JSON parsing error</exception> public void Null() { _awaitingReadValue = false; if (_delegate != null) { _delegate.NextValue(ValueType.Null, true); return; } if (!_tr.Null()) { var pos = _tr.LastPos; var nextVal = _tr.Any(); throw new TypeException(ValueType.Null, nextVal.Type, pos); } }