Project

lazy-json

0.0
No commit activity in last 3 years
No release in over 3 years
Lazy JSON skimmer-parser
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3

Runtime

~> 2
 Project Readme

Lazy JSON

Lazy JSON skimmer-parser. Ideal for cases where a small part of a large JSON document is accessed. Super-low memory footprint. Speed depends partly on the structure of the document and the offset of the portion of interest.

Installation

In your Gemfile:

gem 'lazy-json'

Usage

require 'lazy-json'

# Attach to document. Zero up-front processing here.
lj = LazyJson.attach(json_str)

# Skim to the value of interest and parse
lj['users'][10627811]['stats']['one_week']['message_count'].parse