Sha256: 21b186a56532676ddc96e0654cd39a56551fd51abdcc2b273c541985d23dbd02

Contents?: true

Size: 973 Bytes

Versions: 1

Compression:

Stored size: 973 Bytes

Contents

# simdjson gem
![Ruby](https://github.com/saka1/simdjson_ruby/workflows/Ruby/badge.svg)
[![Gem Version](https://badge.fury.io/rb/simdjson.svg)](https://badge.fury.io/rb/simdjson)

A Ruby bindings for [simdjson](https://github.com/lemire/simdjson).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'simdjson'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install simdjson

## Usage

`Simdjson.parse` returns a Hash (if successful).

```ruby
require 'simdjson'

p Simdjson.parse %|{"a": 12345}| # => {"a"=>12345}
Simdjson.parse %|abcd| # => raise Simdjson::ParseError
```

## Contributing

- Bug reports and pull requests are welcome on GitHub at https://github.com/saka1/simdjson_ruby.

### Formatter

Please use `clang-format` like this:

```
$ clang-format -style=file -i ext/simdjson/*
```

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simdjson-1.0.1 README.md