# C1.JsonNet.JsonConverterAttribute

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_JsonNet_JsonConverterAttribute" data-uid="C1.JsonNet.JsonConverterAttribute" class="text-break">JsonConverterAttribute Class
</h1>
  <div class="markdown level0 summary"><p>Instructs the <a class="xref" href="C1.JsonNet.JsonConverterAttribute.html">JsonConverterAttribute</a> to use the specified <a class="xref" href="C1.JsonNet.JsonConverter.html">JsonConverter</a> when serializing the member or class.</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="https://learn.microsoft.com/dotnet/api/system.attribute">Attribute</a></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Serialization.C1ConverterAttribute.html">C1ConverterAttribute</a></div>
    <div class="level3"><span class="xref">JsonConverterAttribute</span></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_JsonConverterAttribute_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class JsonConverterAttribute : C1ConverterAttribute</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;AttributeUsage(AttributeTargets.ClassOrAttributeTargets.StructOrAttributeTargets.EnumOrAttributeTargets.PropertyOrAttributeTargets.FieldOrAttributeTargets.InterfaceOrAttributeTargets.Parameter, AllowMultiple:=False)&gt;
Public NotInheritable Class JsonConverterAttribute
    Inherits C1ConverterAttribute</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_JsonConverterAttribute__ctor_System_Type_" data-uid="C1.JsonNet.JsonConverterAttribute.#ctor(System.Type)">
          <a class="xref" href="C1.JsonNet.JsonConverterAttribute.-ctor.html#C1_JsonNet_JsonConverterAttribute__ctor_System_Type_">JsonConverterAttribute(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="C1.JsonNet.JsonConverterAttribute.html">JsonConverterAttribute</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonConverterAttribute__ctor_System_Type_System_Object___" data-uid="C1.JsonNet.JsonConverterAttribute.#ctor(System.Type,System.Object[])">
          <a class="xref" href="C1.JsonNet.JsonConverterAttribute.-ctor.html#C1_JsonNet_JsonConverterAttribute__ctor_System_Type_System_Object___">JsonConverterAttribute(Type, params object[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="C1.JsonNet.JsonConverterAttribute.html">JsonConverterAttribute</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
