Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Crystalizer::JSON
Class methods
deserialize
(io :
IO
, to type :
T
.class) :
T
forall
T
Deserializes a JSON document to a given type
T
.
Source
deserialize
(string :
String
, to type :
T
.class) :
T
forall
T
Deserializes a JSON document to a given type
T
.
Source
parse
(string_or_io :
String
|
IO
) :
Any
Parses a JSON document as an
Any
.
Source
serialize
(io :
IO
, object, *, indent :
String
=
Serializer
.indent) :
Nil
Source
serialize
(object, *, indent :
String
=
Serializer
.indent) :
String
Source
Nested types
Crystalizer::JSON::Any
Crystalizer::JSON::Deserializer
Crystalizer::JSON::Error
Crystalizer::JSON::Serializer