JSON for Java:coffee:.
If there are any bugs, tell us!
dependencies {
implementation "io.github.over-run:json:0.2.0"
}
import org.overrun.json.*;
import java.io.*;
public class Example {
public static void main(String[] args) {
var json = new Json(true);
try (var w = new FileWriter("ex.json");
var bw = new BufferedWriter(w)) {
json.toJson(
ofObj("name",
ofStr("name", "value")
),
bw
);
}
}
}