Shape.scal: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/fmt/shape.bend as Shape Lines 54-66 of cswap-bend-cli@0.1.0.0/fmt/shape.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&start_line=54&end_line=66 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json # A scalar as its text; a container as compact JSON. def scal(+j: Json.Json) -> String: match j: case Json.JNull{}: "" case Json.JBool{b}: Json.bool.show(b) case Json.JNum{t}: t case Json.JStr{s}: s case _: Json.emit(j) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=bool.show https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=emit