public JsonDocument Load() { JsonDocument document = null; Action<JsonValue> onRoot = root => { document = new JsonDocument(root); }; while (reader.Next()) { ParseValue(onRoot); } return document; }
public JsonSchemaReader(JsonDocument document) { this.document = document; this.parser = new JsonSchemaParser(); }