pub fn error_json(err: &Error) -> ValueExpand description
The --json error object: the SAME human message [render::error_lines]
produces (joined, without the leading “Error: “), plus the control-API JSON-RPC
code when the failure came from the daemon — the machine-branchable field the
human path deliberately hides.