module Enumerable(T)

Overview

Adds methods for writing serializable objects to JSON lines.

Direct including types

Defined in:

jsonl/enumerable.cr

Instance Method Summary

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.


[View source]
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.


[View source]