public void SkipTo(JsonToken token) { // BUGBUG: Depth check missing bug! // This loop would exit prematurely if it find the sought token at // a depth lower than where it started, such as in the case of // nested structures. while (Read()) { if (Token == token) return; } throw new JsonException(string.Format("Found EOF while attempting to skip to {0}.", token.ToString())); }