def has
import emerging-ezjson@1.3.0.0/src/value.bend as Valueimport Base
404# whether an object has the key; false when the value is not an object
405def has(val: Json, key: String) -> Bool:
406 match val:
407 case JObj{pairs}:
408 has.go(pairs, key)
409 case _:
410 False{}