faster_json
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
-
Add the dependency to your
shard.yml:dependencies: faster_json: github: jgaskins/faster_json -
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
- Fork it (https://github.com/jgaskins/faster_json/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Jamie Gaskins - creator and maintainer
faster_json
- 0
- 0
- 0
- 0
- 0
- about 5 hours ago
- July 10, 2026
MIT License
Fri, 10 Jul 2026 01:51:57 GMT