# GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.NullAsUndefined

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonCoders_NullAsUndefined_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.NullAsUndefined*">NullAsUndefined Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonCoders_NullAsUndefined_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.NullAsUndefined*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonCoders_NullAsUndefined__1_GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonCoder___0__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.NullAsUndefined``1(GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder{``0})">NullAsUndefined&lt;T&gt;(JsonCoder&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>if variant value is undefined it will be converted to null instead
During deserialization, the null value will be replaced with the undefiend variant
should be usedin in combination with Default coder</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static JsonCoder&lt;T&gt; NullAsUndefined&lt;T&gt;(this JsonCoder&lt;T&gt; coder)</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="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder-1.html">JsonCoder</a>&lt;T&gt;</td>
      <td><span class="parametername">coder</span></td>
      <td><p>The current <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder-1.html">JsonCoder&lt;T&gt;</a> to encode and decode the value.</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="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder-1.html">JsonCoder</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder-1.html">JsonCoder&lt;T&gt;</a> with the default value handling.</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>A type of the value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
