EJSONExt
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
- Fork it ( https://github.com/vinniefranco/ejson/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request