pub fn analyze_to_json(source: &str, platform: Platform) -> String
Analyse to a JSON string — { diagnostics: [{ from, to, line, col, severity, category, message }] }.
{ diagnostics: [{ from, to, line, col, severity, category, message }] }