# C1.JsonNet.JsonReader

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_JsonNet_JsonReader" data-uid="C1.JsonNet.JsonReader" class="text-break">JsonReader Class
</h1>
  <div class="markdown level0 summary"><p>Represents a reader that provides access to serialized Json data.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Web.Mvc.Serialization.Operation.html">Operation</a></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Serialization.BaseReader.html">BaseReader</a></div>
    <div class="level3"><span class="xref">JsonReader</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.JsonNet.IJsonOperation.html">IJsonOperation</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.JsonNet.html">C1.JsonNet</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_JsonNet_JsonReader_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class JsonReader : BaseReader, IDisposable, IJsonOperation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class JsonReader
    Inherits BaseReader
    Implements IDisposable, IJsonOperation</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_JsonNet_JsonReader__ctor_System_IO_TextReader_C1_JsonNet_JsonSetting_" data-uid="C1.JsonNet.JsonReader.#ctor(System.IO.TextReader,C1.JsonNet.JsonSetting)">
          <a class="xref" href="C1.JsonNet.JsonReader.-ctor.html#C1_JsonNet_JsonReader__ctor_System_IO_TextReader_C1_JsonNet_JsonSetting_">JsonReader(TextReader, JsonSetting)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the JsonReader class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_JsonNet_JsonReader_Current" data-uid="C1.JsonNet.JsonReader.Current">
          <a class="xref" href="C1.JsonNet.JsonReader.Current.html#C1_JsonNet_JsonReader_Current">Current</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current value which need be deserialized.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonReader_JsonSetting" data-uid="C1.JsonNet.JsonReader.JsonSetting">
          <a class="xref" href="C1.JsonNet.JsonReader.JsonSetting.html#C1_JsonNet_JsonReader_JsonSetting">JsonSetting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the json settings.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_JsonNet_JsonReader_Dispose" data-uid="C1.JsonNet.JsonReader.Dispose">
          <a class="xref" href="C1.JsonNet.JsonReader.Dispose.html#C1_JsonNet_JsonReader_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Dispose all the resources used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonReader_ReadName_System_String_" data-uid="C1.JsonNet.JsonReader.ReadName(System.String)">
          <a class="xref" href="C1.JsonNet.JsonReader.ReadName.html#C1_JsonNet_JsonReader_ReadName_System_String_">ReadName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Read the field from the data according to the specified name</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonReader_ReadValue_System_Type_" data-uid="C1.JsonNet.JsonReader.ReadValue(System.Type)">
          <a class="xref" href="C1.JsonNet.JsonReader.ReadValue.html#C1_JsonNet_JsonReader_ReadValue_System_Type_">ReadValue(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Deserialize the text into an instance of the specified type</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonReader_ReadValue__1" data-uid="C1.JsonNet.JsonReader.ReadValue``1">
          <a class="xref" href="C1.JsonNet.JsonReader.ReadValue.html#C1_JsonNet_JsonReader_ReadValue__1">ReadValue&lt;T&gt;()</a>
        </td>
        <td class="markdown level1 summary"><p>Deserialize the text into an instance of the specified type which T stands.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
