Symmetrical transformation between structured data and JSON
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
lib
spec
.gitignore
.rspec
.simplecov
.travis.yml
CHANGELOG.md
Gemfile
LICENSE.txt
README.md
Rakefile
cucumber.yml
son_jay.gemspec

README.md

SonJay

Symmetrical transformation between structured data and JSON

Allows concrete object/array data model classes to be defined, and then allows JSON serialization/parsing from/to an instance of one of those classes.

This allows a single body of code to be used to define a JSON API structure for a provider and its clients.

Instances of these models can also be used to help keep automated tests simple and reliable. Attempts by test setup code or code under test to produce incorrectly structured data will generally fail in a fast, informative way.

Installation

Add this line to your application's Gemfile:

gem 'son_jay'

And then execute:

$ bundle

Or install it yourself as:

$ gem install son_jay

Usage

Contributing

  1. Fork it ( http://github.com//son_jay/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 new Pull Request