# json

> Ruby's JSON parser and generator, shipped with Ruby as a default gem

Source: https://talira.ai/catalog/json-r9196zbp
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)
- Licence: Ruby OR BSD-2-Clause[^1]
- Pricing: Free and open source
- Free tier: yes
- Backed by: [Ruby core team](https://talira.ai/orgs/ruby-core-team.md)

json is the JSON implementation for [Ruby](https://talira.ai/catalog/ruby-7r6bb7kb.md): JSON.parse turns a JSON document into Ruby hashes and arrays, and JSON.generate and JSON.pretty_generate turn Ruby data back into UTF-8 JSON, following RFC 7159. Objects without a JSON equivalent are serialized through their to_json methods, or through a JSON::Coder that decides how each type is written in one place. It's a C extension on CRuby, with a Java extension for JRuby, and it ships with Ruby as a default gem, maintained by members of the Ruby core team; installing the gem gets a newer version than the one Ruby bundles.

## Links

- GitHub: https://github.com/https://github.com/ruby/json
- Docs: https://docs.ruby-lang.org/en/master/JSON.html

## Problems it solves

- parse a JSON string into a Ruby hash
- turn Ruby objects into JSON with custom rules for dates and other types
- pretty-print JSON from a Ruby script

## Features

- JSON.parse and JSON.generate
- pretty_generate for indented output
- JSON::Coder for per-call serialization of custom types
- ascii_only output with \u escapes
- C extension for CRuby and Java extension for JRuby

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 1.00, adoption 0.58, momentum 0.20, community 0.86, backing 0.30, extensibility 0.00.

- last commit today
- 88 commits in the last 90 days
- latest release v3.2.0 today
- 787 GitHub stars
- 140 contributors
- backed by Ruby core team

## 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/ruby/json/blob/master/COPYING (checked 23 Nov 2026)
