# Jiffy

> JSON encoder and decoder for Erlang, written as a NIF, that puts correctness first

Source: https://talira.ai/catalog/jiffy-12akjt37
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json), [languages / erlang](https://talira.ai/categories/languages/erlang)
- Licence: MIT AND (Apache-2.0 OR BSL-1.0)[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Paul J. Davis](https://talira.ai/orgs/paul-j-davis.md)

Jiffy is a JSON library for Erlang implemented as a NIF in C. It puts correctness over raw speed: it isn't the fastest JSON library in standard benchmarks, but it tries to be fast while affecting total system performance as little as possible, with options for how many bytes it processes per reduction. jiffy:decode can return maps, map null to a chosen term, dedupe keys, limit nesting depth and decode several terms from one binary; jiffy:encode can pretty-print, escape to 7-bit output, fix broken UTF-8 and escape forward slashes. It only understands UTF-8, and errors are raised as exceptions.

## Links

- GitHub: https://github.com/davisp/jiffy

## Problems it solves

- encode and decode JSON in an Erlang app
- parse JSON into Erlang maps
- pretty-print JSON from Erlang

## Features

- C NIF encoder and decoder
- decode to maps, custom null terms and deduplicated keys
- max_depth and trailer decoding for several terms in one binary
- pretty-printed and 7-bit escaped output
- controls how much work runs per reduction to limit scheduler impact

## Limitations

- Only understands UTF-8 in binaries.[^1]
- jiffy:encode returns an iolist, not always a binary.[^1]

## Trust

Overall: 0.50 out of 1.
Signals: maintenance 0.71, adoption 0.59, momentum 0.23, community 0.62, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 17 commits in the last 90 days
- latest release 2.1.0 6 days ago
- 879 GitHub stars
- 35 contributors
- backed by Paul J. Davis

## Alternatives

- [Jason](https://talira.ai/catalog/jason-m3zs9vjv.md): Blazing fast JSON parser and generator in pure Elixir
- [jsone](https://talira.ai/catalog/jsone-fnp4bg5k.md): Fast, pure Erlang JSON encoder and decoder

## Sources

[^1]: https://github.com/davisp/jiffy/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/davisp/jiffy/blob/master/LICENSE (checked 28 Nov 2026)
