pub fn validate_json(
content: &str,
_filename: String,
_context_lines: usize,
) -> Result<()>Expand description
validate json content and return errors with diagnostics
§args
content- the json content to validate_filename- the filename (for error reporting)_context_lines- number of context lines to show (reserved for future use)
§returns
Ok(())if the json is validErr(miette::Report)with diagnostics if invalid