:rotating_light: fix a linter warning
:rotating_light: fix a linter warning

Coverity detected two "Memory - illegal accesses  (OVERRUN)" issues. Resizing the buffer should silence this warning.

theodelrieu/json,nlohmann/json,theodelrieu/json,nlohmann/json,nlohmann/json