You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lightweight Java library for automatically correcting broken JSON strings. Whether you have mismatched brackets, missing commas, or incomplete literals, **JSONFixer4J**tries its best to fix them so you can keep on coding without interruptions! ⚙️
3
+
A fast and efficient tool for automatically correcting broken JSON strings, written in Rust for maximum performance and with JNI for Java integration. Whether you have mismatched brackets, missing commas, or incomplete literals, **JSONFixer4J**fixes them efficiently! ⚙️
4
4
5
5
## Features
6
6
- 🧩 **Bracket Correction**: Fixes unmatched `{` or `}`.
7
7
- 🎯 **Comma Insertion**: Inserts missing commas between keys/values.
> **Note**: Above is an example of a **build.gradle** file. If JSONFixer4J is not yet available via JitPack, you might need to install it locally or reference it as a local library.
29
+
The built binary will be available in the `target/release` directory with .dll or .so extension.
30
30
31
-
### Usage
31
+
### Pre-built Binaries
32
32
33
-
In your Java code, simply create an instance of `JSONAutoCorrector` and call `autocorrect(...)` with your broken JSON string.
33
+
Pre-built binaries are available in the [latest release](https://github.com/DedInc/jsonfixer4j/releases/latest) built on:
JSONFixer4J can be integrated with Java applications using JNI (Java Native Interface) via native. This allows you to leverage the performance benefits of Rust while working within your Java codebase.
0 commit comments