struct Crystalizer::JSON::Deserializer

Included Modules

Defined in:

json/deserializer.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Crystalizer::Deserializer

deserialize(to type : T.class) forall T deserialize

Constructor Detail

def self.new(pull : ::JSON::PullParser) #

[View source]
def self.new(string_or_io : IO | String) : Deserializer #

[View source]

Class Method Detail

def self.deserialize_object_key?(number : String, to type : Number::Primitive.class) #

[View source]
def self.deserialize_object_key?(string : String, to type : String.class) #

[View source]

Instance Method Detail

def deserialize(to type : Crystalizer::Type.class) #

[View source]
def deserialize(to type : ::JSON::Serializable.class | Any.class) #

[View source]
def deserialize(to type : Hash.class) #

[View source]
def deserialize(to type : Array.class | Deque.class | Set.class) forall T #

[View source]
def deserialize(to type : Tuple.class) #

[View source]
def deserialize(to type : NamedTuple.class) #

[View source]
def deserialize(to type : Enum.class) #

[View source]
def deserialize(to type : Bool.class) #

[View source]
def deserialize(to type : Nil.class) #

[View source]
def deserialize(to type : Path.class) #

[View source]
def deserialize(to type : String.class) #

[View source]
def deserialize(to type : Float.class) #

[View source]
def deserialize(to type : Int.class) #

[View source]
def deserialize(to type : Time.class) #

[View source]
def deserialize(to type : T.class) : T forall T #

[View source]