def items.obj
import bend-net-json@0.3.0.0/json.bend as Jsonimport Base
471def items.obj(kvs: List<&2, Sigma<&2, &2, String, _ => Val>>, first: Bool, rest: List<&2, Item>) -> List<&2, Item>:
472 match kvs:
473 case Nil{}:
474 Con{ILit{"}"}, rest}
475 case (k, v) <> t:
476 items.sep(first, Con{ILit{"\"" ++ esc(k) ++ "\":"}, Con{IVal{v}, items.obj(t, False{}, rest)}})