///|
test "convert a structured JSON value to YAML and back" {
let configuration : Yaml = @json.from_json(
@json.parse(
(
#|{
#| "name": "example",
#| "enabled": true,
#| "items": ["a", null]
#|}
),
),
)
@json.json_inspect(configuration.to_json(), content={
"name": "example",
"enabled": true,
"items": ["a", null],
})
}Install
Download zipFocused utility collections, traits, and value types for MoonBit
Dependencies