Json.Json.lookup.go: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/json.bend as Json Lines 100-109 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=100&end_line=109 import Base # The value under key in an object's member chain; JNull when absent. hit # says whether the chain's head is key. def Json.lookup.go(ms: Json, +key: String, hit: Bool) -> Json: match ms hit: case JMem{k, v, t} True{}: v case JMem{k, v, +t} False{}: Json.lookup.go(t, key, Json.head_is(t, key)) case _ _: JNull{} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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.head_is