pub fn cast_to_string(value: &Value) -> Result<String, String>Expand description
Renders a JSON value as a string leaf (cast.ToStringE).
A witness method that receives a leaf as raw JSON, rather than as a generated field, renders it
through this so that 1.0 and a null read as the Agent reads them ("1" and "") instead of as
their JSON spelling.
ยงErrors
Returns an error for a compound value, the one shape the Agent cannot render as a string.