# GrapeCity.Documents.Excel.Workbook.ToSjsJson

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson*">ToSjsJson Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_System_IO_Stream_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson(System.IO.Stream)">ToSjsJson(Stream)</h4>
<div class="markdown level1 summary"><p>Integrates all JSON files from the SpreadJS .sjs file into a single string, then put the string into the stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ToSjsJson(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ToSjsJson(stream As Stream)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The specified file stream.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Excel.IWorkbook.ToSjsJson.html#GrapeCity_Documents_Excel_IWorkbook_ToSjsJson_System_IO_Stream_">IWorkbook.ToSjsJson(Stream)</a></div>


<a id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_System_IO_Stream_GrapeCity_Documents_Excel_SjsSaveOptions_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson(System.IO.Stream,GrapeCity.Documents.Excel.SjsSaveOptions)">ToSjsJson(Stream, SjsSaveOptions)</h4>
<div class="markdown level1 summary"><p>Integrates all JSON files from the SpreadJS .sjs file into a single string, then put the string into the stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ToSjsJson(Stream stream, SjsSaveOptions options)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ToSjsJson(stream As Stream, options As SjsSaveOptions)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The specified file stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.SjsSaveOptions.html">SjsSaveOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Option for opening SpreadJS .sjs file.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Excel.IWorkbook.ToSjsJson.html#GrapeCity_Documents_Excel_IWorkbook_ToSjsJson_System_IO_Stream_GrapeCity_Documents_Excel_SjsSaveOptions_">IWorkbook.ToSjsJson(Stream, SjsSaveOptions)</a></div>


<a id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_ToSjsJson" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson">ToSjsJson()</h4>
<div class="markdown level1 summary"><p>Generates a JSON string from a workbook. It integrates all JSON files from the SpreadJS .sjs file into a single string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ToSjsJson()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToSjsJson() As String</code></pre>
</div>
<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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>Json data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Excel.IWorkbook.ToSjsJson.html#GrapeCity_Documents_Excel_IWorkbook_ToSjsJson">IWorkbook.ToSjsJson()</a></div>


<a id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_ToSjsJson_GrapeCity_Documents_Excel_SjsSaveOptions_" data-uid="GrapeCity.Documents.Excel.Workbook.ToSjsJson(GrapeCity.Documents.Excel.SjsSaveOptions)">ToSjsJson(SjsSaveOptions)</h4>
<div class="markdown level1 summary"><p>Generates a JSON string from a workbook. It integrates all JSON files from the SpreadJS .sjs file into a single string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ToSjsJson(SjsSaveOptions options)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToSjsJson(options As SjsSaveOptions) As String</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="GrapeCity.Documents.Excel.SjsSaveOptions.html">SjsSaveOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Option for saving SpreadJS .sjs file.</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>Json data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Excel.IWorkbook.ToSjsJson.html#GrapeCity_Documents_Excel_IWorkbook_ToSjsJson_GrapeCity_Documents_Excel_SjsSaveOptions_">IWorkbook.ToSjsJson(SjsSaveOptions)</a></div>
</div>
