# GrapeCity.Documents.Excel.IWorkbook.FromJson

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IWorkbook_FromJson_" data-uid="GrapeCity.Documents.Excel.IWorkbook.FromJson*">FromJson Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IWorkbook_FromJson_" data-uid="GrapeCity.Documents.Excel.IWorkbook.FromJson*"></a>
<h4 id="GrapeCity_Documents_Excel_IWorkbook_FromJson_System_String_GrapeCity_Documents_Excel_DeserializationOptions_" data-uid="GrapeCity.Documents.Excel.IWorkbook.FromJson(System.String,GrapeCity.Documents.Excel.DeserializationOptions)">FromJson(string, DeserializationOptions)</h4>
<div class="markdown level1 summary"><p>Generates a workbook from a JSON string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IList&lt;JsonError&gt; FromJson(string json, DeserializationOptions deserializationOptions = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function FromJson(json As String, Optional deserializationOptions As DeserializationOptions = Nothing) As IList(Of JsonError)</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">json</span></td>
      <td><p>The JSON</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.DeserializationOptions.html">DeserializationOptions</a></td>
      <td><span class="parametername">deserializationOptions</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Excel.DeserializationOptions.html">DeserializationOptions</a> object.</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.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.JsonError.html">JsonError</a>&gt;</td>
      <td><p>The errors in the JSON.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_IWorkbook_FromJson_" data-uid="GrapeCity.Documents.Excel.IWorkbook.FromJson*"></a>
<h4 id="GrapeCity_Documents_Excel_IWorkbook_FromJson_System_IO_Stream_GrapeCity_Documents_Excel_DeserializationOptions_" data-uid="GrapeCity.Documents.Excel.IWorkbook.FromJson(System.IO.Stream,GrapeCity.Documents.Excel.DeserializationOptions)">FromJson(Stream, DeserializationOptions)</h4>
<div class="markdown level1 summary"><p>Generates a workbook from a JSON stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IList&lt;JsonError&gt; FromJson(Stream stream, DeserializationOptions deserializationOptions = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function FromJson(stream As Stream, Optional deserializationOptions As DeserializationOptions = Nothing) As IList(Of JsonError)</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 stream</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.DeserializationOptions.html">DeserializationOptions</a></td>
      <td><span class="parametername">deserializationOptions</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Excel.DeserializationOptions.html">DeserializationOptions</a> object.</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.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.JsonError.html">JsonError</a>&gt;</td>
      <td><p>The errors in the JSON.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
