Skip to content

Commit

Permalink
add pretty printing to Gson
Browse files Browse the repository at this point in the history
  • Loading branch information
Burchard36 committed Nov 21, 2021
1 parent 77382e6 commit 5f2c72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/burchard36/json/PluginDataManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class PluginDataManager {
public HashMap<Enum<?>, PluginDataMap> dataMap = new HashMap<>();

public PluginDataManager(final JavaPlugin plugin) {
this.gson = new GsonBuilder().create();
this.gson = new GsonBuilder().setPrettyPrinting().create();
this.jsonWriter = new PluginJsonWriter(this.gson);
}

Expand Down

0 comments on commit 5f2c72b

Please sign in to comment.