Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

json-api/parser-ruby

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

JSON::Api

Build Status Code Climate

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 = <<-JSON
{
  "posts": [{
    "id": "1",
    "title": "Rails is Omakase",
    "links": {
      "author": "9",
      "comments": [ "5", "12", "17", "20" ]
    }
  }]
}
JSON

puts JSON::Api.parse(json).class # => Hash

Contributing

  1. Fork it
  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

About

A JSON API parser, in Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages