///|
test "convert a parsed TOML configuration to JSON" {
let configuration = TomlValue::TomlValue(
@upstream_toml.parse(
(
#|title = "example"
#|enabled = true
#|
#|[owner]
#|name = "Ada"
),
),
)
@json.json_inspect(configuration.to_json(), content={
"title": "example",
"enabled": true,
"owner": { "name": "Ada" },
})
}Install
Download zipFocused utility collections, traits, and value types for MoonBit
Dependencies