JSON::Api
A parser and validator for JSON API documents.
Installation
Add this line to your application's Gemfile:
gem 'json-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install json-api
Usage
require 'json/api'
json = "{\n \"posts\": [{\n \"id\": \"1\",\n \"title\": \"Rails is Omakase\",\n \"links\": {\n \"author\": \"9\",\n \"comments\": [ \"5\", \"12\", \"17\", \"20\" ]\n }\n }]\n}\n"
puts JSON::Api.parse(json).class # => Hash
Contributing
- Fork it
- 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 new Pull Request

