mangiucugna/json_repair

Removing markdown code blocks?

Closed this issue · 2 comments

Sometimes I've gotten responses from LLMs that look like this:

```json
{
  "msg": "test"
}
```

and this:

```
{
  "msg": "test"
}
```

Do you think it makes sense to add markdown backtick stripping to this library? =)

@mangiucugna You're awesome. Thank you!

My objective here is to support everything, so I am releasing 0.7.0 to support this use case as well :)