v0.3.0
- Adds first-class support for streaming JSON lines (#18)
url = 'https://my.remote.file/file.jsonl'
stream = StreamLines::Reading::JSONLines.new(url)
stream.each do |row|
# each row will be an Hash
end
# Supports all Ruby JSON::parse options
stream = StreamLines::Reading::JSONLines.new(url, symbolize_names: true)
stream.each do |row|
# each row will be a Hash
end