>.toJsonSchema()</code> method (or property in JavaScript). The output of the method is a JSON Schema string representating the original RAML DataType.</p>
<pre><code class="lang-js"><span class="hljs-comment">// js</span>
<span class="hljs-keyword">const</span> wap = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;webapi-parser&apos;</span>).WebApiParser

<span class="hljs-keyword">const</span> ramlLibrary = <span class="hljs-string">`
  #%RAML 1.0 Library
  types:
    Book:
    