def items.obj

bend-net-json@0.3.0.0 · json.bend:471

import bend-net-json@0.3.0.0/json.bend as Json
import 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)}})

Uses (9)

Used by (1)