Skip to content

Commit be50cf3

Browse files
authored
feat: add json_repair formatter (#787)
* add:json_repair * update:args
1 parent 9d859cb commit be50cf3

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ You can view this list in vim with `:help conform-formatters`
286286
- [joker](https://github.com/candid82/joker) - Small Clojure interpreter, linter and formatter.
287287
- [jq](https://github.com/stedolan/jq) - Command-line JSON processor.
288288
- [js_beautify](https://github.com/beautifier/js-beautify) - Beautifier for javascript.
289+
- [json_repair](https://github.com/mangiucugna/json_repair) - A python module to repair invalid JSON from LLMs.
289290
- [jsonnetfmt](https://github.com/google/go-jsonnet/tree/master/cmd/jsonnetfmt) - jsonnetfmt is a command line tool to format jsonnet files.
290291
- [just](https://github.com/casey/just) - Format Justfile.
291292
- [kcl](https://www.kcl-lang.io/docs/tools/cli/kcl/fmt) - The KCL Format tool modifies the files according to the KCL code style.

doc/conform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ FORMATTERS *conform-formatter
407407
`joker` - Small Clojure interpreter, linter and formatter.
408408
`jq` - Command-line JSON processor.
409409
`js_beautify` - Beautifier for javascript.
410+
`json_repair` - A python module to repair invalid JSON from LLMs.
410411
`jsonnetfmt` - jsonnetfmt is a command line tool to format jsonnet files.
411412
`just` - Format Justfile.
412413
`kcl` - The KCL Format tool modifies the files according to the KCL code style.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---@type conform.FileFormatterConfig
2+
return {
3+
meta = {
4+
url = "https://github.com/mangiucugna/json_repair",
5+
description = "A python module to repair invalid JSON from LLMs.",
6+
},
7+
command = "json_repair",
8+
args = {},
9+
}

0 commit comments

Comments
 (0)