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

  2. SaaSHub

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

    SaaSHub 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

  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.

  9. Spyke

    Interact with REST services in an ActiveRecord-like manner

  10. 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.

  11. 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.

  12. LogStashLogger

    Ruby logger that writes logstash events

  13. Flexirest

    Flexirest - The really flexible REST API client for Ruby

  14. postal-codes-json-xml-csv

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

  15. datoji

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

  16. JSONAPI::Utils

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

  17. 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...

  18. 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)

  19. cache-crispies

    Speedy Rails JSON serialization with built-in caching

  20. chronicle-etl

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

  21. oj_serializers

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

  22. html2rss

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

  23. 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

  24. 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...

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

  • 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
  • Efficient JSON Serialization with Blueprinter for Ruby on Rails

    1 project | /r/rails | 28 May 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 19 Jan 2025
    SaaSHub helps you find the best software and product alternatives 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,327
2 ISO-3166-Countries-with-Regional-Codes 2,252
3 Jb 1,293
4 Blueprinter 1,155
5 StoreModel 1,106
6 Mobility 1,030
7 alba 973
8 Spyke 900
9 json 708
10 shale 652
11 LogStashLogger 457
12 Flexirest 325
13 postal-codes-json-xml-csv 312
14 datoji 225
15 JSONAPI::Utils 216
16 json-stream 193
17 feedparser 165
18 cache-crispies 156
19 chronicle-etl 155
20 oj_serializers 128
21 html2rss 121
22 flatito 106
23 rapidjson-ruby 55

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com