Rubygem-yajl-ruby

Jul 20, 2023

Streaming JSON parsing and encoding library for Ruby

This gem is a C binding to the excellent YAJL JSON parsing and generation library.

Features

  • JSON parsing and encoding directly to and from an IO stream file, socket, etc or String. Compressed stream parsing and encoding supported for Bzip2, Gzip and Deflate.
  • Parse and encode multiple JSON objects to and from streams or strings continuously.
  • JSON gem compatibility API - allows yajl-ruby to be used as a drop-in replacement for the JSON gem
  • Basic HTTP client only GET requests supported for now which parses JSON directly off the response body as it’s being received
  • ~3.5x faster than JSON.generate
  • ~1.9x faster than JSON.parse
  • ~4.5x faster than YAML.load
  • ~377.5x faster than YAML.dump
  • ~1.5x faster than Marshal.load
  • ~2x faster than Marshal.dump


Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler