# GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder-1.Sub

## Content

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



<h1 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonObjectCoderBuilder_1_Sub_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder`1.Sub*">Sub Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonObjectCoderBuilder_1_Sub_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder`1.Sub*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonObjectCoderBuilder_1_Sub__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Action_GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonObjectCoderBuilder___0___System_Func___0_System_Boolean__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder`1.Sub``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Action{GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder{``0}},System.Func{``0,System.Boolean})">Sub&lt;TProperty&gt;(Expression&lt;Func&lt;TObject, TProperty&gt;&gt;, Action&lt;JsonObjectCoderBuilder&lt;TProperty&gt;&gt;, Func&lt;TProperty, bool&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a child bject properties to the JSON object coder with the specified getter, and coder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JsonObjectCoderBuilder&lt;TObject&gt; Sub&lt;TProperty&gt;(Expression&lt;Func&lt;TObject, TProperty&gt;&gt; getter, Action&lt;JsonObjectCoderBuilder&lt;TProperty&gt;&gt; props, Func&lt;TProperty, bool&gt; skipOnWrite = null) where TProperty : new()</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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TObject, TProperty&gt;&gt;</td>
      <td><span class="parametername">getter</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression">Expression</a> object to get the property value from the object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder-1.html">JsonObjectCoderBuilder</a>&lt;TProperty&gt;&gt;</td>
      <td><span class="parametername">props</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action">Action</a> for setting of an object properties to the object coder builder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TProperty, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</td>
      <td><span class="parametername">skipOnWrite</span></td>
      <td><p>A function with condition to skip writing the property.</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.JsonObjectCoderBuilder-1.html">JsonObjectCoderBuilder</a>&lt;TObject&gt;</td>
      <td><p>The current instance of <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder-1.html">JsonObjectCoderBuilder&lt;TObject&gt;</a>.</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">TProperty</span></td>
      <td><p>The type of the property.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
