def json_of_body

mlbend-huggingface@0.1.1.0 · main.bend:78

import mlbend-huggingface@0.1.1.0/main.bend as MlbendHuggingface
import Base
import bend-kit-json@0.6.1.1/json.bend as Json
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

78# The JSON of a body, or the reason there is none.
79def json_of_body(body: Bytes.Bytes) -> Result<&1, &1, Err, Json.Val>:
80  json_of_maybe(Json.parse.bytes(body))

Uses (6)

Used by (1)