def Value.json

bend-kit-notch@0.4.0.0 · notch.bend:171

import bend-kit-notch@0.4.0.0/notch.bend as Notch
import Base

171def Value.json(v: Value) -> String:
172  match v:
173    case Str{s}:
174      quote(s)
175    case Num{n}:
176      U32.show(n)
177    case Flag{b}:
178      Bool.word(b)

Uses (5)

Used by (1)