From 08106156c47e01484772c3d686c3053f78fbf5d7 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sat, 17 Sep 2022 23:42:48 +0300 Subject: [PATCH] Don't add comma for the root container. --- module/Library/JSON.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Library/JSON.cpp b/module/Library/JSON.cpp index 814b8460..37c0a368 100644 --- a/module/Library/JSON.cpp +++ b/module/Library/JSON.cpp @@ -281,7 +281,7 @@ SQRESULT CtxJSON::SerializeParams(HSQUIRRELVM vm) CloseArray(); } // Remove trailing separator, if any - else if (mOutput.back() == ',') + if (mOutput.back() == ',') { mOutput.pop_back(); }