Update variable

This commit is contained in:
Weapie 2024-09-03 23:17:29 +02:00
parent 5a87ea4e2c
commit 6c8d1936bc

View File

@ -36,8 +36,8 @@ public class JsonUtils {
public static void writeJson(Object object, File file) {
try(FileWriter fileWriter = new FileWriter(file)) {
String prettyJsonString = JSON.toJson(object);
fileWriter.write(prettyJsonString);
String jsonString = JSON.toJson(object);
fileWriter.write(jsonString);
fileWriter.close();
} catch (IOException ex) {
System.out.println("Exception thrown while writing the file " + file.getPath());