# yajl-ruby

> Fast streaming JSON parsing and encoding for Ruby, built on the YAJL C library

Source: https://talira.ai/catalog/yajl-ruby-p29db98m
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / serialization](https://talira.ai/categories/libraries/serialization), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Brian Lopez](https://talira.ai/orgs/brian-lopez.md)

yajl-ruby is an open source Ruby gem that binds the YAJL C library for parsing and generating JSON. It reads and writes JSON directly from and to IO streams or strings, including Bzip2, Gzip and Deflate compressed streams, handles several JSON documents in a row, can stand in for the json gem through a compatibility API, and includes a basic HTTP client that parses JSON as the response arrives.

## Links

- GitHub: https://github.com/brianmario/yajl-ruby

## Problems it solves

- parse a large JSON stream in Ruby without loading it all into memory
- speed up JSON parsing and generation in a Ruby app
- read many JSON objects one after another from a socket in Ruby

## Features

- parse and encode JSON directly from and to IO streams or strings
- compressed stream parsing and encoding for Bzip2, Gzip and Deflate
- parse and encode several JSON documents from one stream
- drop-in compatibility API for the json gem
- basic HTTP client that parses JSON as the response body arrives
- HTML-safe encoding option

## Limitations

- Its HTTP client supports only GET requests[^1]

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.61, adoption 0.63, momentum 0.27, community 0.70, backing 0.30, extensibility 0.00.

- last commit 26 days ago
- 2 commits in the last 90 days
- 1.5k GitHub stars
- 54 contributors
- backed by Brian Lopez

## Related

- Based on [YAJL](https://talira.ai/catalog/yajl-6jny4xj4.md)

## Alternatives

- [Oj](https://talira.ai/catalog/oj-bc21mcne.md): A fast JSON parser and Object marshaller as a Ruby gem

## Sources

[^1]: https://github.com/brianmario/yajl-ruby/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/brianmario/yajl-ruby/blob/master/LICENSE (checked 28 Nov 2026)
