def row.json

cswap-bend-cli@0.1.0.0 · setwrite.bend:223

import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwrite
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/settings.bend as Settings

223def row.json(r: Row) -> Json.Json:
224  match r:
225    case Row{sp, value, set}:
226      Json.of_pairs([("key", Json.JStr{Settings.dotted(sp)}), ("value", value), ("isSet", Json.JBool{set})])

Uses (6)

Used by (1)