Skip to content

Commit

Permalink
do not pretty print json for less memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Aug 10, 2024
1 parent ba135fa commit 416e4d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private void handleCanvasToJSON() {
// convert list of shapes on canvas to json
GsonBuilder gsonBuilder = new GsonBuilder();
List<ShapeWrapper> shapes = app.getCanvasModel().getShapeManager().getShapes();
Gson gson = gsonBuilder.setPrettyPrinting().create();
Gson gson = gsonBuilder.create();
String json = gson.toJson(shapes);

// let user choose folder location
Expand Down

0 comments on commit 416e4d4

Please sign in to comment.