# C1.JsonNet.JsonWriter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_JsonNet_JsonWriter" data-uid="C1.JsonNet.JsonWriter" class="text-break">JsonWriter Class
</h1>
  <div class="markdown level0 summary"><p>Serialize an object to a json text.</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="C1.Web.Mvc.Serialization.Operation.html">Operation</a></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Serialization.BaseWriter.html">BaseWriter</a></div>
    <div class="level3"><span class="xref">JsonWriter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.JsonNet.IJsonOperation.html">IJsonOperation</a></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_JsonWriter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class JsonWriter : BaseWriter, IDisposable, IJsonOperation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class JsonWriter
    Inherits BaseWriter
    Implements IDisposable, IJsonOperation</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_JsonWriter__ctor_System_IO_TextWriter_C1_JsonNet_JsonSetting_" data-uid="C1.JsonNet.JsonWriter.#ctor(System.IO.TextWriter,C1.JsonNet.JsonSetting)">
          <a class="xref" href="C1.JsonNet.JsonWriter.-ctor.html#C1_JsonNet_JsonWriter__ctor_System_IO_TextWriter_C1_JsonNet_JsonSetting_">JsonWriter(TextWriter, JsonSetting)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the JsonWriter 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_JsonWriter_JsonSetting" data-uid="C1.JsonNet.JsonWriter.JsonSetting">
          <a class="xref" href="C1.JsonNet.JsonWriter.JsonSetting.html#C1_JsonNet_JsonWriter_JsonSetting">JsonSetting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the json settings.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_JsonNet_JsonWriter_EndScope" data-uid="C1.JsonNet.JsonWriter.EndScope">
          <a class="xref" href="C1.JsonNet.JsonWriter.EndScope.html#C1_JsonNet_JsonWriter_EndScope">EndScope()</a>
        </td>
        <td class="markdown level1 summary"><p>End the scope.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonWriter_StartArrayScope_System_Object_" data-uid="C1.JsonNet.JsonWriter.StartArrayScope(System.Object)">
          <a class="xref" href="C1.JsonNet.JsonWriter.StartArrayScope.html#C1_JsonNet_JsonWriter_StartArrayScope_System_Object_">StartArrayScope(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Start the scope for an array.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonWriter_StartObjectScope_System_Object_" data-uid="C1.JsonNet.JsonWriter.StartObjectScope(System.Object)">
          <a class="xref" href="C1.JsonNet.JsonWriter.StartObjectScope.html#C1_JsonNet_JsonWriter_StartObjectScope_System_Object_">StartObjectScope(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Start the scope for a new object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonWriter_WriteName_System_String_" data-uid="C1.JsonNet.JsonWriter.WriteName(System.String)">
          <a class="xref" href="C1.JsonNet.JsonWriter.WriteName.html#C1_JsonNet_JsonWriter_WriteName_System_String_">WriteName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Serialize a name for a property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonWriter_WriteRawName_System_String_" data-uid="C1.JsonNet.JsonWriter.WriteRawName(System.String)">
          <a class="xref" href="C1.JsonNet.JsonWriter.WriteRawName.html#C1_JsonNet_JsonWriter_WriteRawName_System_String_">WriteRawName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Serialize a name for a property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonWriter_WriteRawValue_System_String_" data-uid="C1.JsonNet.JsonWriter.WriteRawValue(System.String)">
          <a class="xref" href="C1.JsonNet.JsonWriter.WriteRawValue.html#C1_JsonNet_JsonWriter_WriteRawValue_System_String_">WriteRawValue(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Serialize a text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_JsonWriter_WriteValue_System_Object_System_Boolean_" data-uid="C1.JsonNet.JsonWriter.WriteValue(System.Object,System.Boolean)">
          <a class="xref" href="C1.JsonNet.JsonWriter.WriteValue.html#C1_JsonNet_JsonWriter_WriteValue_System_Object_System_Boolean_">WriteValue(object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Serialize the specified object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
