# MultiJSON

> One JSON interface for Ruby that picks the fastest available coder

Source: https://talira.ai/catalog/multijson-hndqdv7h
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 / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Erik Berlin](https://talira.ai/orgs/erik-berlin.md)

MultiJSON gives Ruby libraries one interface for JSON instead of tying them to a single coder: it uses the fastest JSON library available in the app (such as Oj, fast_jsonparser or the json gem), and you can pick an adapter yourself or write a custom one. Its parse and generate methods match Ruby's standard JSON module, parse errors come back as one error class with the line and column where the adapter reports them, and blank input parses to nil.

## Links

- GitHub: https://github.com/sferik/multi_json

## Problems it solves

- let users of my Ruby gem choose their own JSON library
- use Oj when it is installed and fall back to the json gem otherwise
- switch a Ruby app's JSON parser without changing code that calls it

## Features

- one JSON API over several Ruby JSON coders
- picks the fastest available coder
- custom adapters
- parse errors with line and column where the adapter reports them

## Trust

Overall: 0.45 out of 1.
Signals: maintenance 0.75, adoption 0.29, momentum 0.13, community 0.72, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 22 commits in the last 90 days
- latest release v1.21.2 2 months ago
- 28 GitHub stars
- 61 contributors
- backed by Erik Berlin

## Alternatives

- [Oj](https://talira.ai/catalog/oj-bc21mcne.md): A fast JSON parser and Object marshaller as a Ruby gem
- [json](https://talira.ai/catalog/json-r9196zbp.md): Ruby's JSON parser and generator, shipped with Ruby as a default gem

## Sources

[^1]: https://github.com/sferik/multi_json/blob/master/LICENSE.md (checked 28 Nov 2026)
