def key.json
import yaml-for-bend@0.1.1.0/value.bend as Valueimport Base
288# A key's JSON: a string as it is, anything else as a string of its JSON.
289def key.json(str: Bool, +text: String) -> String:
290 match str:
291 case True{}:
292 text
293 case False{}:
294 json.str(text)