# GrapeCity.ActiveReports.Core.Rdl.Extensibility.JsonSerializersFactory.Register

## Content

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



<h1 id="GrapeCity_ActiveReports_Core_Rdl_Extensibility_JsonSerializersFactory_Register_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Extensibility.JsonSerializersFactory.Register*">Register Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rdl_Extensibility_JsonSerializersFactory_Register_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Extensibility.JsonSerializersFactory.Register*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Extensibility_JsonSerializersFactory_Register_System_String_System_Type_System_Func_System_Text_Json_Serialization_JsonConverter_GrapeCity_ActiveReports_PageReportModel_ReportItem___" data-uid="GrapeCity.ActiveReports.Core.Rdl.Extensibility.JsonSerializersFactory.Register(System.String,System.Type,System.Func{System.Text.Json.Serialization.JsonConverter{GrapeCity.ActiveReports.PageReportModel.ReportItem}})">Register(string, Type, Func&lt;JsonConverter&lt;ReportItem&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Registers a JSON converter for a specific type of report item.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Register(string typeName, Type type, Func&lt;JsonConverter&lt;ReportItem&gt;&gt; getConverter)</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">typeName</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the report item name used to specify the type in the JSON..</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>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a> object representing the type of the report item.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<span class="xref">JsonConverter</span>&lt;<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportItem.html">ReportItem</a>&gt;&gt;</td>
      <td><span class="parametername">getConverter</span></td>
      <td><p>The function to get a <span class="xref">System.Text.Json.Serialization.JsonConverter&lt;&gt;</span> object used for serialization and deserialization.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Core_Rdl_Extensibility_JsonSerializersFactory_Register_System_String_System_Type_System_Func_System_Text_Json_Serialization_JsonConverter_GrapeCity_ActiveReports_PageReportModel_ReportItem____remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method allows the registration of custom JSON converters for specific report item types.
The converters will be used to handle the serialization and deserialization of those types.</p>
</div>
</div>
