pub fn render_lint_json(report: &LintReport) -> Result<String, Error>Expand description
Render the lint report as a JSON array of findings (an empty array when there
are none). Each finding carries its lowercase severity, its stable code, a
human message, and its structured fields (the core Finding’s serde
representation, unwrapped to just the variant’s fields, since code already
names the rule).
§Errors
Returns a serde_json::Error only if serializing a finding fails, which the
finding types do not do in practice.