Sha256: 3025657bd5f10e9d482e85434a686ec714cfbd7d63b753c39def749597cb7c89
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
# Elster A simple streaming JSON encoder. ## Installation Add this line to your application's Gemfile: gem 'elster' And then execute: $ bundle Or install it yourself as: $ gem install elster ## Usage ``` ruby output = StringIO.new json = Elster::Streamer.new(output) json.key(:name, "George") json.key(:kids) do json.add("Job") json.add("Buster") end json.close puts output.string # {"name":"George","kids":["Job","Buster"]} ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
elster-0.0.6 | /Users/jwebb/src/bigjason/elster/README.md |
elster-0.0.5 | /Users/jwebb/src/bigjason/elster/README.md |
elster-0.0.3 | /Users/jwebb/src/bigjason/elster/README.md |