def as_bool
import emerging-ezjson@1.3.0.0/src/value.bend as Valueimport 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{}