Skip to content

Commit ab5faec

Browse files
committed
Update README.md
1 parent 26b3961 commit ab5faec

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,24 @@ A tiny library to repair JSON string output from LLM. It fixes most of the commo
1616

1717
## Usage
1818

19+
## Add dependency
20+
21+
```xml
22+
<dependency>
23+
<groupId>com.github.coderphonui</groupId>
24+
<artifactId>jsonautorepair</artifactId>
25+
<version>1.0.0</version>
26+
</dependency>
27+
```
28+
29+
Your Java code
30+
1931
```java
20-
String originalJSON = """
32+
33+
import com.cdpn.jsonautofix.JSONAutoFixer;
34+
35+
JSONAutoFixer jsonAutoRepairer = new JSONAutoFixer();
36+
String originalJSON = """
2137
```json
2238
{
2339
"name": "Alice",

0 commit comments

Comments
 (0)