Json.Json.set: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/json.bend as Json Lines 189-196 of bend-kube-runtime@0.2.0.0/src/json.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&start_line=189&end_line=196 import Base # Sets key in an object's member chain, replacing the first match or # appending at the end. def Json.set(j: Json, +key: String, v: Json) -> Json: match j: case JObj{ms}: JObj{Json.put_mem(ms, key, v)} case _: JObj{JMem{key, v, JNil{}}} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=Json.put_mem