struct Crystalizer::JSON::Serializer

Included Modules

Defined in:

json/serializer.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Crystalizer::Serializer

serialize(object : O) forall O serialize

Constructor Detail

def self.new(builder : ::JSON::Builder) #

[View source]
def self.new(io : IO, & : Serializer -> ) : Nil #

[View source]

Class Method Detail

def self.indent : String #

[View source]
def self.indent=(indent : String) #

[View source]
def self.serialize_object_key(null : Nil) #

[View source]
def self.serialize_object_key(any : Crystalizer::Any) #

[View source]
def self.serialize_object_key(object : Path | String | Symbol | Number::Primitive) #

[View source]

Instance Method Detail

def indent=(value : String) #

[View source]
def serialize(object : Crystalizer::Type) #

[View source]
def serialize(object : Crystalizer::Any) #

[View source]
def serialize(object : ::JSON::Serializable) #

[View source]
def serialize(hash : Hash) #

[View source]
def serialize(array : Array | Deque | Set | Tuple) #

[View source]
def serialize(named_tuple : NamedTuple) #

[View source]
def serialize(bool : Bool) #

[View source]
def serialize(object : Enum) #

[View source]
def serialize(null : Nil) #

[View source]
def serialize(number : Number::Primitive) #

[View source]
def serialize(object : Path | String | Symbol) #

[View source]
def serialize(time : Time) #

[View source]
def serialize(object : O) : Nil forall O #

[View source]