From b43535a180f1890e2ef4ebed6e5024dc0d940df8 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 17 Oct 2020 16:55:34 +0200 Subject: [PATCH] json mem optimization --- src/console.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/console.cpp b/src/console.cpp index 68c9747dd..061703cf7 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -403,6 +403,7 @@ void EMSESPShell::add_console_commands() { } if (ok && output.size()) { + doc.shrinkToFit(); serializeJsonPretty(doc, shell); shell.println(); }