Ruby JSON

Open-source Ruby projects categorized as JSON
Ruby Rails API YAML CSV

Top 23 Ruby JSON Projects

  1. ActiveModel::Serializers

    ActiveModel::Serializer implementation and Rails hooks

    Project mention: [Rails] How We Reduced API Response Rendering Time by 30% | dev.to | 2025-02-01

    Other candidates included the following gems such as alba, active_model_serializers, and jsonapi-serializer. Considering team-wide adoption and maintenance, we preferred gems with syntax similar to Jbuilder if possible.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. ISO-3166-Countries-with-Regional-Codes

    ISO 3166-1 country lists merged with their UN Geoscheme regional codes in ready-to-use JSON, XML, CSV data sets

    Project mention: A Symbol for the Fediverse ⁂ | news.ycombinator.com | 2024-08-24

    https://github.com/lukes/ISO-3166-Countries-with-Regional-Co...

  4. Jb

    A simple and fast JSON API template engine for Ruby on Rails

    Project mention: [Rails] How We Reduced API Response Rendering Time by 30% | dev.to | 2025-02-01

    Next, I investigated template engines. The first one I explored was a gem called jb, maintained by Ruby/Rails committer Matsuda-san. I replaced Jbuilder with it but didn’t see significant improvements.

  5. Blueprinter

    Simple, Fast, and Declarative Serialization Library for Ruby

  6. StoreModel

    Work with JSON-backed attributes as ActiveRecord-ish models

  7. Mobility

    Pluggable Ruby translation framework

  8. alba

    Alba is a JSON serializer for Ruby, JRuby and TruffleRuby.

    Project mention: Building High Performance Ruby REST APIs with Rage | dev.to | 2025-04-29

    Since our Todo items are attached to groups, and we’d like to have structured JSON responses where each item is nested within a group, we will build our serializers with Alba. Let’s update the Gemfile:

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. Spyke

    Interact with REST services in an ActiveRecord-like manner

  11. json

    JSON implementation for Ruby (by ruby)

    Project mention: Optimizing Ruby's JSON, Part 4 | news.ycombinator.com | 2025-01-03

    > Using the benchmarks in the Oj test directory

    I'm sorry, but I've looked for a while now, and I can't seem to identify the benchmark you are mentioning. I suspect it's the one John took for his benchmark suite? [0]

    > Oj has a slight advantage over the core json for dumping but not enough to make much difference

    I'd be curious to see which benchmark you are using, because on the various ones included in ruby/json, Oj is slightly slower on about all of them: https://gist.github.com/byroot/b13d78e37b5c0ac88031dff763b3b..., except for scanning strings with lots of multi-byte characters, but I have a branch I need to finish that should fix that.

    > The comparison for Oj strict parsing compared to the core json is more substantial as 1.37 times faster

    Here too I'd be curious to see your benchmark suite because that doesn't match mine: https://gist.github.com/byroot/dd4d4391d45307a47446addeb7774...

    > The callback parsers (Saj and Scp) also show a performance advantage as does the most recent Oj::Parser.

    Yeah, callback parsing isn't something I plan to support, at least not for now. As for Oj::Parser, `ruby/json` got quite close to it, but then @tenderlove pointed to me that the API I was trying to match wasn't thread safe, hence it wasn't a fair comparison, so now I still bench against it, but with a new instance every time: https://github.com/ruby/json/pull/703.

    > You picked the wrong options for you example.

    No, I picked them deliberately. That's the sort of behavior users don't expect and can be bitten by.

  12. shale

    Shale is a Ruby object mapper and serializer for JSON, YAML and XML. It allows you to parse JSON, YAML and XML data and convert it into Ruby data structures, as well as serialize data structures into JSON, YAML or XML.

  13. LogStashLogger

    Ruby logger that writes logstash events

  14. postal-codes-json-xml-csv

    Collection of postal codes in different formats, ready for importing.

  15. Flexirest

    Flexirest - The really flexible REST API client for Ruby

  16. datoji

    A tiny JSON storage service. Create, Read, Update, Delete and Search JSON data.

  17. JSONAPI::Utils

    Build JSON API-compliant APIs on Rails with no (or less) learning curve.

  18. json-stream

    A streaming JSON parser that generates SAX-like events. (by dgraham)

    Project mention: Building a Crosswalk File with Wikidata, DuckDB, and Ruby Ractors | news.ycombinator.com | 2024-10-05

    There's even more alternatives at the bottom https://github.com/dgraham/json-stream?tab=readme-ov-file#al...

  19. feedparser

    feedparser gem - (universal) web feed parser and normalizer (XML w/ Atom or RSS, JSON Feed, HTML w/ Microformats e.g. h-entry/h-feed or Feed.HTML, Feed.TXT w/ YAML, JSON or INI & Markdown, etc.) (by rubycocos)

  20. chronicle-etl

    📜 A CLI toolkit for extracting and working with your digital history

  21. cache-crispies

    Speedy Rails JSON serialization with built-in caching

  22. oj_serializers

    ⚡️ Faster JSON serialization for Ruby on Rails. Easily migrate away from Active Model Serializers.

  23. html2rss

    📰 Build RSS 2.0 feeds from websites (and JSON APIs) automatically or with a few CSS selectors.

  24. flatito

    Grep for YAML and JSON files

    Project mention: Greppability is an underrated code metric | news.ycombinator.com | 2024-09-02

    I built the command line tool flatito() just for the Rails i18n translations keys.

    I am unsure if I like the author's approach because there are other cons, but it's a good point.

    https://github.com/ceritium/flatito

  25. rapidjson-ruby

    A fast JSON library for Ruby

    Project mention: Optimizing Ruby's JSON, Part 4 | news.ycombinator.com | 2025-01-03

    As a matter of fact, I discovered this behavior because one of the benchmark payloads (canada.json) doesn't roundtrip cleanly with Oj's default mode, that's why I benchmark against the `:compat` mode. IMO truncating data for speed isn't an acceptable default config.

    [0] https://github.com/jhawthorn/rapidjson-ruby/blob/518818e6768...

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Ruby JSON discussion

Log in or Post with

Ruby JSON related posts

  • [Rails] How We Reduced API Response Rendering Time by 30%

    10 projects | dev.to | 1 Feb 2025
  • Optimizing Ruby's JSON, Part 4

    5 projects | news.ycombinator.com | 3 Jan 2025
  • Optimizing Ruby's JSON, Part 1

    9 projects | news.ycombinator.com | 18 Dec 2024
  • Show HN: FalkorDB fork from RedisGraph bringing it back to life

    3 projects | news.ycombinator.com | 12 Aug 2023
  • Recommended Controllers Serializer Gem?

    5 projects | /r/rubyonrails | 18 Jun 2023
  • FortiOS script for creating countries and regions

    1 project | /r/fortinet | 16 Jun 2023
  • Efficient JSON Serialization with Blueprinter for Ruby on Rails

    1 project | /r/ruby | 29 May 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 21 Jun 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source JSON projects in Ruby? This list will help you:

# Project Stars
1 ActiveModel::Serializers 5,336
2 ISO-3166-Countries-with-Regional-Codes 2,336
3 Jb 1,302
4 Blueprinter 1,203
5 StoreModel 1,140
6 Mobility 1,065
7 alba 1,019
8 Spyke 903
9 json 720
10 shale 663
11 LogStashLogger 456
12 postal-codes-json-xml-csv 339
13 Flexirest 329
14 datoji 225
15 JSONAPI::Utils 215
16 json-stream 195
17 feedparser 166
18 chronicle-etl 160
19 cache-crispies 156
20 oj_serializers 134
21 html2rss 128
22 flatito 107
23 rapidjson-ruby 56

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Ruby is
the 12th most popular programming language
based on number of references?