module Crystalizer::JSON

Extended Modules

Defined in:

json.cr
json/any.cr
json/deserializer.cr
json/serializer.cr

Class Method Summary

Class Method Detail

def self.deserialize(io : IO, to type : T.class) : T forall T #

Deserializes a JSON document to a given type T.


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

Deserializes a JSON document to a given type T.


[View source]
def self.parse(string_or_io : String | IO) : Any #

Parses a JSON document as an Any.


[View source]
def self.serialize(io : IO, object, *, indent : String = Serializer.indent) : Nil #

[View source]
def self.serialize(object, *, indent : String = Serializer.indent) : String #

[View source]