def unwrap
import cswap-bend-cli@0.1.0.0/json.bend as Jsonimport Base
450# The value of a parse that must have worked; JNull when it did not. For
451# tests and constants, not for untrusted text.
452def unwrap(+r: Result<&2, &2, String, Json>) -> Json:
453 match r:
454 case Done{v}:
455 v
456 case Fail{e}:
457 JNull{}