/// <summary> /// Parses expecting an object in the source. /// </summary> private JsonToken ParseObject() { if (NextClean() != '{') { throw new JsonException("An object must begin with '{'."); } return(Yield(JsonToken.Object(), ParseObjectMemberMethod)); }
protected override void WriteStartObjectImpl() { Write(JsonToken.Object()); }