jsonl
Version, currently 0.1.01 version
- 0.1.0latestAug 15, 2023
github.com/Sija/jsonl.cr
Crystal shard for handling JSONL (JSON Lines) parsing
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
jsonl:
github: Sija/jsonl.cr
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
1.9.2- License
- MIT
- Author
- Sijawusz Pur Rahnama
Dependencies
Development Dependencies
- ameba~> 1.5.0github: crystal-ameba/amebadev
README
JSONL
JSONL is a module for handling JSONL (JSON Lines) parsing.
Installation
-
Add the dependency to your
shard.yml:dependencies: jsonl: github: Sija/jsonl.cr -
Run
shards install
Usage
require "jsonl"
arr = JSONL.parse <<-JSONL
{"foo": "bar"}
[1, 2, 3]
"foo"
JSONL
arr.class # => Array(JSON::Any)
class User
include JSON::Serializable
property id : Int32
property first_name : String
property last_name : String
end
users = User.from_jsonl <<-JSONL
{"id": 1, "first_name": "John", "last_name": "Doe"}
{"id": 2, "first_name": "Mary", "last_name": "Poppins"}
{"id": 3, "first_name": "Jack", "last_name": "Black"}
JSONL
users.class # => Array(User)
Contributing
- Fork it (https://github.com/Sija/jsonl.cr/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
- Sijawusz Pur Rahnama - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Aug 15, 2023
- Commit
862d5e18674b- Crystal
1.9.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Sija/jsonl.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1