From 60119ff8fa03c926f38b01a0b65bc1008311b175 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sat, 17 Sep 2022 23:41:43 +0300 Subject: [PATCH] Include comma after separator braces. --- module/Library/JSON.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/Library/JSON.cpp b/module/Library/JSON.cpp index 18c61032..814b8460 100644 --- a/module/Library/JSON.cpp +++ b/module/Library/JSON.cpp @@ -172,6 +172,8 @@ CtxJSON & CtxJSON::CloseArray() { mOutput.push_back(']'); } + // Move the comma after the closing character + mOutput.push_back(','); // Go back one level Retreat(); // Allow chaining @@ -202,6 +204,8 @@ CtxJSON & CtxJSON::CloseObject() { mOutput.push_back('}'); } + // Move the comma after the closing character + mOutput.push_back(','); // Go back one level Retreat(); // Allow chaining