faster_json

Patches for the Crystal stdlib JSON module that improve performance of JSON parsing and building

faster_json

This shard is a patch for the Crystal stdlib JSON with huge performance improvements, especially when parsing from an IO.

All of the code comes from the Crystal stdlib JSON::Builder and JSON::Lexer with the performance improvements from this pull request.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      faster_json:
        github: jgaskins/faster_json
    
  2. Run shards install

Usage

require "faster_json"

That's it. That's all there is to using this shard.

Use this in apps, not shards

This overwrites the stdlib JSON module, so don't put this in a shard meant for general use. Let applications make the decision whether to include this patch.

If a shard depends on this and there is any divergence between this and the stdlib JSON module, every dependent of that shard breaks. An application can simply not load this patch until it's fixed.

Contributing

  1. Fork it (https://github.com/jgaskins/faster_json/fork)
  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 a new Pull Request

Contributors

Repository

faster_json

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 5 hours ago
  • July 10, 2026
License

MIT License

Links
Synced at

Fri, 10 Jul 2026 01:51:57 GMT

Languages