Skip to content

conspire-org/lazy-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lazy JSON skimmer-parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages