# C1.JsonNet.JsonAttribute

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_JsonNet_JsonAttribute" data-uid="C1.JsonNet.JsonAttribute" class="text-break">JsonAttribute Class
</h1>
  <div class="markdown level0 summary"><p>Defines the attribute for json serialization and deserialization.</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.C1NameAttribute.html">C1NameAttribute</a></div>
    <div class="level3"><span class="xref">JsonAttribute</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.interopservices._attribute">_Attribute</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.JsonNet.html">C1.JsonNet</a></h6>
  <h6><strong>Assembly</strong>: C1.Web.Mvc.dll</h6>
  <h5 id="C1_JsonNet_JsonAttribute_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class JsonAttribute : C1NameAttribute, _Attribute</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;AttributeUsage(AttributeTargets.PropertyOrAttributeTargets.Field)&gt;
Public NotInheritable Class JsonAttribute
    Inherits C1NameAttribute
    Implements _Attribute</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_JsonAttribute__ctor_System_Boolean_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.Boolean)">
          <a class="xref" href="C1.JsonNet.JsonAttribute.-ctor.html#C1_JsonNet_JsonAttribute__ctor_System_Boolean_">JsonAttribute(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonAttribute__ctor_System_Boolean_System_Int32_System_String_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.Boolean,System.Int32,System.String)">
          <a class="xref" href="C1.JsonNet.JsonAttribute.-ctor.html#C1_JsonNet_JsonAttribute__ctor_System_Boolean_System_Int32_System_String_">JsonAttribute(bool, int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonAttribute__ctor_System_Int32_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.Int32)">
          <a class="xref" href="C1.JsonNet.JsonAttribute.-ctor.html#C1_JsonNet_JsonAttribute__ctor_System_Int32_">JsonAttribute(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonAttribute__ctor_System_String_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.String)">
          <a class="xref" href="C1.JsonNet.JsonAttribute.-ctor.html#C1_JsonNet_JsonAttribute__ctor_System_String_">JsonAttribute(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_JsonNet_JsonAttribute_Order" data-uid="C1.JsonNet.JsonAttribute.Order">
          <a class="xref" href="C1.JsonNet.JsonAttribute.Order.html#C1_JsonNet_JsonAttribute_Order">Order</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicates the order of the seriailization or deserialization.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonAttribute_SkipIfDefault" data-uid="C1.JsonNet.JsonAttribute.SkipIfDefault">
          <a class="xref" href="C1.JsonNet.JsonAttribute.SkipIfDefault.html#C1_JsonNet_JsonAttribute_SkipIfDefault">SkipIfDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicates whether to serialize or deserialize the default value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
