Packages

A fast, spec compliant, generic JSON parser and encoder in Gleam

Current section

Files

Jump to
gj gen docs index.html
Raw

gen/docs/index.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>gj</title>
<link rel="stylesheet" href="./index.css" type="text/css" />
</head>
<body>
<header class="page-header">
<h2>
gj<!-- - -->
</h2>
</header>
<div class="page">
<nav class="sidebar">
<a class="sidebar-toggle" href="#">
<svg
aria-hidden="true"
focusable="false"
data-prefix="fas"
data-icon="bars"
class="svg-inline--fa fa-bars fa-w-14"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
>
<path
fill="#fff"
d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"
>
</path>
</svg>
</a>
<h2>Pages</h2>
<ul>
<li><a href="./index.html">README</a></li>
</ul>
<h2>Modules</h2>
<ul>
<li><a href="./generic_json&#x2f;">generic_json</a></li>
<li><a href="./gj&#x2f;">gj</a></li>
<li><a href="./gj_decode&#x2f;">gj_decode</a></li>
<li><a href="./gj_encode&#x2f;">gj_encode</a></li>
</ul>
</nav>
<main class="content">
<h1>gj</h1>
<p>A fast, generic JSON parser and encoder in Gleam</p>
<h2>Documentation</h2>
<p><a href="https://hexdocs.pm/gj/">https://hexdocs.pm/gj/</a></p>
<h2>Quick start</h2>
<p>in your <code>rebar.config</code> deps section add:</p>
<pre><code class="language-erlang">{deps, [
gj
]]
</code></pre>
<pre><code class="language-rust">import gj
// Decoding
&gt; gj.decode(&quot;[1]&quot;)
Ok(Array([Number(1.0)]))
// Encoding
&gt; gj.encode(Array([Number(1.0)]))
Ok(&quot;[1.0]&quot;)
</code></pre>
</main>
</div>
<script>const pride = () => document.querySelector('body').classList.toggle('show-pride')</script>
<a class="pride-button" onclick="pride()"></a>
<footer class="pride" onclick="pride()">
<div class="blue">Lucy</div>
<div class="pink">says</div>
<div class="white">trans</div>
<div class="pink">rights</div>
<div class="blue"></div>
</footer>
</body>
</html>