module

Ipconv::Serializer

Dispatches data serialization across supported output formats: "plain", "json", "yaml", "xml", and "csv".

Class methods

serialize(output_format : String, data : Hash(String, String), pretty : Bool = false) : String

Serializes a single key-value data map into the requested output_format.

Source
serialize_array(output_format : String, rows : Array(Hash(String, String)), pretty : Bool = false) : String

Serializes an array of rows into the requested output_format.

Source