baml.json.DecodeError
A parsed JSON value that does not fit the expected BAML type.
Reference version
Signature
class baml.json.DecodeErrorA parsed JSON value that does not fit the expected BAML type.
path locates the offending node in jq-ish notation: .field for a class
field, [0] for an array element, ["key"] for a map entry. Only
from_string<T> threads it end to end from the decode root. The
override-honoring drivers (to<T>, from_json<T>, deserialize<T>)
re-enter per node, so there it is "" or relative to the failing leaf.
Source:<builtin>/baml/ns_json/json.bamlbytes 1325–1385
Fields
message
stringpath
stringImplementations
baml.Concrete for T
Source:<builtin>/baml/core.bamlbytes 763–795