ead-json"><code>read-json</code></a>, but also asserts that
  the resulting value is of a given type, and raises an error of type
  <code>json-type-error</code> if not.</p>

  <p class="def" id="write-json">
    <span>function</span> write-json (element stream)
  </p>

  <p class="desc">Writes a value to a stream. Raises an error of type
  <code>json-write-error</code> if a value for which no <a
  href="#write-json-element"><code>write-json-element</code></a>
  method is defined is encountered.</p>

  <p cl