MightyJSON

A faster implementation of soutaro/strong_json.

Gem Version Build Status

Benchmarking

graph

  • In complex case, MightyJSON is faster 2.8x than StrongJSON (code).
  • In simple case, MightyJSON is faster around 2x ~ 10x than StrongJSON (code).

Installation

Add this line to your application's Gemfile:

gem 'mighty_json'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mighty_json

Usage

See soutaro/strong_json.

Compatibility

MightyJSON does not have the following methods.

  • Type::Object#merge
  • Type::Object#except
  • Type::*#coerce
  • Type::*#===
  • Type::*#=~

MightyJSON does not support literal type that is not serializable by Object#inspect method.

License

See LICENSE.txt and LICENSE.txt.original. This code bases soutaro/strong_json.