# C1.JsonNet.JsonHelper.DeserializeObject

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_JsonNet_JsonHelper_DeserializeObject_" data-uid="C1.JsonNet.JsonHelper.DeserializeObject*">DeserializeObject Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_JsonNet_JsonHelper_DeserializeObject_" data-uid="C1.JsonNet.JsonHelper.DeserializeObject*"></a>
<h4 id="C1_JsonNet_JsonHelper_DeserializeObject__1_System_String_C1_JsonNet_JsonSetting_" data-uid="C1.JsonNet.JsonHelper.DeserializeObject``1(System.String,C1.JsonNet.JsonSetting)">DeserializeObject&lt;T&gt;(string, JsonSetting)</h4>
<div class="markdown level1 summary"><p>Deserializes the JSON to the specified .NET type using <a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static T DeserializeObject&lt;T&gt;(string strJson, JsonSetting js = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DeserializeObject(Of T)(strJson As String, Optional js As JsonSetting = Nothing) As T</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">strJson</span></td>
      <td><p>The object to deserialize.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a></td>
      <td><span class="parametername">js</span></td>
      <td><p>The <a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a> used to deserialize the object.
If this is null, default serialization settings will be used.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">T</span></td>
      <td><p>The deserialized object from the JSON string.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>The type of the object to deserialize to.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_JsonNet_JsonHelper_DeserializeObject_" data-uid="C1.JsonNet.JsonHelper.DeserializeObject*"></a>
<h4 id="C1_JsonNet_JsonHelper_DeserializeObject_System_String_C1_JsonNet_JsonSetting_" data-uid="C1.JsonNet.JsonHelper.DeserializeObject(System.String,C1.JsonNet.JsonSetting)">DeserializeObject(string, JsonSetting)</h4>
<div class="markdown level1 summary"><p>Deserializes the JSON to the specified .NET type using <a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static object DeserializeObject(string strJson, JsonSetting js = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DeserializeObject(strJson As String, Optional js As JsonSetting = Nothing) As Object</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">strJson</span></td>
      <td><p>The object to deserialize.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a></td>
      <td><span class="parametername">js</span></td>
      <td><p>The <a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a> used to deserialize the object.
If this is null, default serialization settings will be used.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><p>The deserialized object from the JSON string.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_JsonNet_JsonHelper_DeserializeObject_" data-uid="C1.JsonNet.JsonHelper.DeserializeObject*"></a>
<h4 id="C1_JsonNet_JsonHelper_DeserializeObject_System_String_System_Type_C1_JsonNet_JsonSetting_" data-uid="C1.JsonNet.JsonHelper.DeserializeObject(System.String,System.Type,C1.JsonNet.JsonSetting)">DeserializeObject(string, Type, JsonSetting)</h4>
<div class="markdown level1 summary"><p>Deserializes the JSON to the specified type using <a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static object DeserializeObject(string strJson, Type type, JsonSetting js = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DeserializeObject(strJson As String, type As Type, Optional js As JsonSetting = Nothing) As Object</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">strJson</span></td>
      <td><p>The object to deserialize.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type the json will be deserialized.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a></td>
      <td><span class="parametername">js</span></td>
      <td><p>The <a class="xref" href="C1.JsonNet.JsonSetting.html">JsonSetting</a> used to deserialize the object.
If this is null, default serialization settings will be used.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><p>The deserialized object from the JSON string.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
