Skip to main content

kyaml

Function kyaml 

Source
fn kyaml(y: &Yaml) -> String
Expand description

A Yaml node back out as KYAML.

yaml-rust2 ships an emitter and it is the wrong one: it writes plain scalars, and this text goes into an alerts.kyaml. JSON is the quoted subset of KYAML (principle 5), so writing JSON is writing KYAML — and it is the spelling that keeps {"gt": 500000000} a number, which quoting every scalar alike would not.