cryyjson
cryyjson
Simple crystal bindings to yyjson
Only parsing is supported for now.
Installation
-
Add the dependency to your
shard.yml
:dependencies: cryyjson: github: syeopite/cryyjson
-
Run
shards install
Note: You must have cmake installed in order to build yyjson via the postinstall script
Usage
require "cryyjson"
data = File.read("example_data.json").gets_to_end
json = Cryyjson.parse(data)
# API is the exact same as stdlib
typeof(json) # => JSON::Any
json["key"] # => value
Contributing
- Fork it (https://github.com/syeopite/cryyjson/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
Credits
Repository
cryyjson
Owner
Statistic
- 0
- 0
- 1
- 0
- 0
- 4 months ago
- July 5, 2024
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 18:10:57 GMT
Languages