module Enumerable(T)
Overview
Adds methods for writing serializable objects to JSON lines.
Direct including types
Defined in:
jsonl/enumerable.crInstance Method Summary
-
#to_jsonl(io : IO) : Nil
Writes each element of this object to their own line in JSON.
-
#to_jsonl : String
Constructs a string with each element of this object on their own line in JSON.
Instance Method Detail
def to_jsonl(io : IO) : Nil
#
Writes each element of this object to their own line in JSON. One line is written per object where each line contains a valid JSON document.
def to_jsonl : String
#
Constructs a string with each element of this object on their own line in JSON. One line per object where each line contains a valid JSON document.