SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Ruby JSON Projects
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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
https://github.com/lukes/ISO-3166-Countries-with-Regional-Co...
-
-
-
-
-
-
-
> 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.
-
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.
-
-
-
-
-
-
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...
-
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)
-
-
-
oj_serializers
⚡️ Faster JSON serialization for Ruby on Rails. Easily migrate away from Active Model Serializers.
-
html2rss
📰 Build RSS 2.0 feeds from websites (and JSON APIs) automatically or with a few CSS selectors.
-
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
-
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...
Ruby JSON discussion
Ruby JSON related posts
-
Optimizing Ruby's JSON, Part 4
-
Optimizing Ruby's JSON, Part 1
-
Show HN: FalkorDB fork from RedisGraph bringing it back to life
-
Recommended Controllers Serializer Gem?
-
FortiOS script for creating countries and regions
-
Efficient JSON Serialization with Blueprinter for Ruby on Rails
-
Efficient JSON Serialization with Blueprinter for Ruby on Rails
-
A note from our sponsor - SaaSHub
www.saashub.com | 19 Jan 2025
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 |