def parse_doc
import cswap-bend-cli@0.1.0.0/setimp.bend as Setimpimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
137# The document in `text`, which is in format `f` (json, yaml, toon or csv).
138def parse_doc(+f: String, +text: String) -> Result<&2, &2, String, Json.Json>:
139 must_obj(parse_named(f, text))