Yaml
Welcome to the BoxLang YAML Module
# For Operating Systems using our Quick Installer.
install-bx-module bx-yaml
# Using CommandBox to install for web servers.
box install boxlang-yamlUsage
// Serialize a BoxLang structure into a YAML string
yaml = yamlSerialize( { name="Luis", age=21, city="Orlando" } );
// Serialize a more complex structure
yaml = yamlSerialize( { name="Luis", age=21, city="Orlando", address={ street="1234", city="Orlando", state="FL" } } );
// Deserialize a YAML string into a BoxLang structure
data = yamlDeserialize( yaml );
// Deserialize a YAML file into a BoxLang structure
data = yamlDeserializeFile( "data.yml" );BoxLang Class Serialization
BoxLang Class Custom Serialization
GitHub Repository and Reporting Issues
Last updated
Was this helpful?
