module C0::JSON

Defined in:

c0/json.cr

Class Method Summary

Class Method Detail

def self.from_json(input : String, group_name : String = "data") : Bytes #

Convert JSON string to C0DATA compact bytes.


[View source]
def self.from_yaml(input : String, group_name : String = "data") : Bytes #

Convert YAML string to C0DATA compact bytes.


[View source]
def self.to_json(buf : Bytes) : String #

Convert C0DATA compact bytes to JSON string.


[View source]
def self.to_yaml(buf : Bytes) : String #

Convert C0DATA compact bytes to YAML string.


[View source]