class CAJ::Builder

Defined in:

case_aware_json.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

to_json(io : IO, case convention : CAJ::Cases | Symbol)
to_json(case convention : CAJ::Cases | Symbol)
to_json

Class methods inherited from class Object

from_json(string_or_io, root : String, case convention : CAJ::Cases | Symbol)
from_json(string_or_io, case convention : CAJ::Cases | Symbol)
from_json

Constructor Detail

def self.new(io : IO, case _convention = CAJ.default_convention) #

[View source]

Instance Method Detail

def convention : Cases #

[View source]
def convention=(convention : Cases) #

[View source]
def field(name, value) #
Description copied from class JSON::Builder

Writes an object's field and value. The field's name is first converted to a String by invoking to_s on it.


[View source]
def field(name, &) #
Description copied from class JSON::Builder

Writes an object's field and then invokes the block. This is equivalent of invoking string(value) and then invoking the block.


[View source]
def format_key(key) #

[View source]