pub fn format_to_json(source: &str) -> String
Format to a JSON string — {"ok":true,"formatted":…} or {"ok":false,"error":…}.
{"ok":true,"formatted":…}
{"ok":false,"error":…}