type Open
import bend-kit-json@0.7.0.0/json.bend as Jsonimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
20# An open container: array items so far, object fields so far, or those fields
21# and the key whose value comes next. Items and fields are reversed.
22type Open is Type:
23 OArr{xs: List<&1, Val>}
24 OObj{kvs: List<&1, Bytes.Bytes & Val>}
25 OKey{kvs: List<&1, Bytes.Bytes & Val>, key: Bytes.Bytes}