EJSONExt

Code Climate

A light parser for Meteors EJSON spec. Only has date parsing out of the box for now.

You can learn more about EJSON here: [https://www.meteor.com/ejson]

Installation

gem 'ejson_ext'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ejson_ext

Usage

Parsing EJSON

EJSONExt.parse('{"$escape":{"$date":{"$date":35820576553}}}}')

Stringifying EJSON

EJSONExt.stringify({ when: Time.now })

Development

After checking out the repo, run bin/setup to install dependencies.

Contributing

  1. Fork it ( https://github.com/vinniefranco/ejson/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request