def as_bool

emerging-ezjson@1.3.0.0 · src/value.bend:476

import emerging-ezjson@1.3.0.0/src/value.bend as Value
import Base

476# a boolean, or none when the value is not one
477def as_bool(val: Json) -> Maybe<&2, Bool>:
478  match val:
479    case JBool{b}:
480      Some{b}
481    case other:
482      None{}

Uses (3)

Used by (1)