
<h1 id="set">
 <a href="#/api/json/set" class="anchor">
   <span>set</span>
  </a>
</h1>

<div class="signature">

<hr>

  <div class="definition-container">
    <div class="definition">
      <code class="desktop-only"><span class="token keyword">template</span> <<span class="token keyword">class</span> <span class="token keyword">T</span>>
<a href="#/api/json/">occa::json</a>&amp; set(<span class="token keyword">const</span> <span class="token keyword">std::string</span> &amp;key,
                <span class="token keyword">const</span> <span class="token keyword">T</span> &amp;value)</code>
      <code class="mobile-only"><span class="token keyword">template</span> <<span class="token keyword">class</span> <span class="token keyword">T</span>>
<a href="#/api/json/">occa::json</a>&amp; set(
    <span class="token keyword">const</span> <span class="token keyword">std::string</span> &amp;key,
    <span class="token keyword">const</span> <span class="token keyword">T</span> &amp;value
)</code>
      <div class="flex-spacing"></div>
      <a href="https://github.com/libocca/occa/blob/7d02eac1/include/occa/types/json.hpp#L741" target="_blank">Source</a>
    </div>
    
  </div>

  <hr>
</div>
