Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pocke/mighty_json
A faster implementation of soutaro/strong_json.
https://github.com/pocke/mighty_json
Last synced: 3 days ago
JSON representation
A faster implementation of soutaro/strong_json.
- Host: GitHub
- URL: https://github.com/pocke/mighty_json
- Owner: pocke
- License: mit
- Created: 2017-05-25T09:31:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-03T11:21:34.000Z (over 7 years ago)
- Last Synced: 2024-12-06T14:49:02.226Z (22 days ago)
- Language: Ruby
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MightyJSON
A faster implementation of [soutaro/strong_json](https://github.com/soutaro/strong_json).
[![Gem Version](https://badge.fury.io/rb/mighty_json.svg)](https://badge.fury.io/rb/mighty_json)
[![Build Status](https://travis-ci.org/pocke/mighty_json.svg?branch=master)](https://travis-ci.org/pocke/mighty_json)## Benchmarking
![graph](https://cloud.githubusercontent.com/assets/4361134/26479369/9b5848c2-420d-11e7-9ada-83d5f16840df.png)
- In complex case, MightyJSON is faster 2.8x than StrongJSON ([code](https://github.com/pocke/mighty_json/blob/master/benchmarks/large.rb)).
- In simple case, MightyJSON is faster around 2x ~ 10x than StrongJSON ([code](https://github.com/pocke/mighty_json/blob/master/benchmarks/small.rb)).## Installation
Add this line to your application's Gemfile:
```ruby
gem 'mighty_json'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install mighty_json
## Usage
See [soutaro/strong_json](https://github.com/soutaro/strong_json/blob/master/README.md).
## 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](https://github.com/pocke/mighty_json/blob/master/LICENSE.txt) and [LICENSE.txt.original](https://github.com/pocke/mighty_json/blob/master/LICENSE.txt.original).
This code bases [soutaro/strong_json](https://github.com/soutaro/strong_json).