module
C0::JSON
Defined in:
c0/json.crClass Method Summary
-
.from_json(input : String, group_name : String = "data") : Bytes
Convert JSON string to C0DATA compact bytes.
-
.from_yaml(input : String, group_name : String = "data") : Bytes
Convert YAML string to C0DATA compact bytes.
-
.to_json(buf : Bytes) : String
Convert C0DATA compact bytes to JSON string.
-
.to_yaml(buf : Bytes) : String
Convert C0DATA compact bytes to YAML string.
Class Method Detail
def self.from_json(input : String, group_name : String = "data") : Bytes
#
Convert JSON string to C0DATA compact bytes.
def self.from_yaml(input : String, group_name : String = "data") : Bytes
#
Convert YAML string to C0DATA compact bytes.