<div dir="ltr">Howdy,<div><br></div><div>I'd like to present a minimal JSON encoding/decoding library:</div><div><br></div><div>  <a href="http://hackage.haskell.org/package/yocto-0.1.2">http://hackage.haskell.org/package/yocto-0.1.2</a></div>

<div><br></div><div>From the README:</div><div><br></div><div><div>Yocto is exceedingly simple: it only exports one type, Value (which can represent any JSON-encoded data) in addition to Read and Show instances for it--which, respectively, take care of decoding and encoding values automatically.</div>

<div><br></div><div>It's worth mentioning that Yocto handles numbers as Rationals rather than Doubles, which makes it faithful to the JSON standard and lets it handle rational numbers of arbitrary magnitude and precision.</div>

</div><div><br></div><div>The name is a play on metric unit prefixes: AttoJson is a tiny JSON library, and Yocto is even smaller. (The entire implementation fits in fewer than 80 lines x 80 columns.)<br></div><div><br></div>

<div>[It is meant primarily for interactive use and one-offs, which is how I'm handwaving hijacking Read and Show.]<br></div><div><br></div><div>Anyway, I hope you find it useful; the code lives here:</div><div><br></div>

<div>  <a href="https://github.com/ajg/yocto">https://github.com/ajg/yocto</a></div><div><br></div><div>Alvaro</div><div><a href="http://alva.ro">http://alva.ro</a></div><div><br></div></div>