faster_json
Version, currently main branch1 version
- main branchlatestJul 10, 2026
github.com/jgaskins/faster_json
Patches for the Crystal stdlib JSON module that improve performance of JSON parsing and building
Installation
# Add this to your shard.yml
dependencies:
faster_json:
github: jgaskins/faster_json
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.20.2- License
- MIT
- Author
- Jamie Gaskins
Dependencies
This version declares no dependencies.
README
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
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Jul 10, 2026
- Crystal
>= 1.20.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/jgaskins/faster_json
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1