RubyGems Navigation menu

smarter_json 1.1.0

A lenient, fast JSON processor for Ruby. It extracts strict JSON, NDJSON, JSONL, JSON5, HJSON-style config, and the messy JSON-ish input humans and LLMs actually write — comments, trailing commas, single / unquoted / smart quotes, Python and JS keywords, a UTF-8 BOM, and more all parse to the same Ruby objects, with no modes or flags to set. Where a traditional parser stops at the first deviation and throws away the whole document, SmarterJSON keeps going — it optimizes for getting your data out, not for policing the JSON spec. It reads multi-document NDJSON / JSONL in one call (and streams it with a block), and in benchmarks its C extension matches or beats Oj on nearly every file. SmarterJSON is opinionated: we want your JSON processing to be successful.

Gemfile:
=

install:
=

Versions:

  1. 1.1.0 June 09, 2026 (87.5 KB)
  2. 1.0.0 June 09, 2026 (84 KB)
  3. 0.9.9 June 07, 2026 (80 KB)
  4. 0.9.2 June 03, 2026 (75 KB)
  5. 0.8.0 June 03, 2026 (72 KB)
Show all versions (9 total)

Runtime Dependencies (1):

bigdecimal >= 0

Owners:

Pushed by:

Authors:

  • Tilo Sloboda

SHA 256 checksum:

=

Total downloads 1,322

For this version 97

Version Released:

License:

MIT

Required Ruby Version: >= 2.6.0

Links: