def key.json

yaml-for-bend@0.1.1.0 · value.bend:288

import yaml-for-bend@0.1.1.0/value.bend as Value
import 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)

Uses (3)

Used by (1)