/// <summary> /// Using JsonReader reads the specified <paramref name="textReader"/> input and returns a JSON OM. /// </summary> /// <param name="jsonReader">The JSON reader to read from.</param> /// <param name="assert">Assertion handler to use for validation.</param> /// <returns>The input read into a JSON OM using the JsonReader from the product.</returns> public static JsonValue ReadJson(JsonReader jsonReader, AssertionHandler assert) { JsonToObjectModelReader omReader = new JsonToObjectModelReader(jsonReader, assert); return omReader.ReadValue(); }
/// <summary> /// Using JsonReader reads the specified <paramref name="textReader"/> input and returns a JSON OM. /// </summary> /// <param name="jsonReader">The JSON reader to read from.</param> /// <param name="assert">Assertion handler to use for validation.</param> /// <returns>The input read into a JSON OM using the JsonReader from the product.</returns> public static JsonValue ReadJson(JsonReader jsonReader, AssertionHandler assert) { JsonToObjectModelReader omReader = new JsonToObjectModelReader(jsonReader, assert); return(omReader.ReadValue()); }