Function format_jsonc
Source pub fn format_jsonc(input: &str) -> String
Expand description
Formats JSONC (.jsonc, .cjson) matching VS Code Prettier 3.7.4 jsonc parser (preserving comments and trailingComma: "all").
§Arguments
&str - Raw JSONC source text.
§Returns
String - Formatted JSONC text, or unchanged input if syntax errors occur.