struct JSON::ArrayBuilder(T)

Overview

Handly struct to write JSON arrays

Superclass hierarchy

Object
Value
Struct
JSON::ArrayBuilder(T)

Defined in:

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(io : T, indent = 0)

Instance Method Detail

def <<(value)

Appends a JSON value into this array


def push(&block)

Executes the block, expecting it to append a value in this array


def push(value)

Same as #<<