1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Include comma after separator braces.

This commit is contained in:
Sandu Liviu Catalin 2022-09-17 23:41:43 +03:00
parent f4720ae77a
commit 60119ff8fa

View File

@ -172,6 +172,8 @@ CtxJSON & CtxJSON::CloseArray()
{ {
mOutput.push_back(']'); mOutput.push_back(']');
} }
// Move the comma after the closing character
mOutput.push_back(',');
// Go back one level // Go back one level
Retreat(); Retreat();
// Allow chaining // Allow chaining
@ -202,6 +204,8 @@ CtxJSON & CtxJSON::CloseObject()
{ {
mOutput.push_back('}'); mOutput.push_back('}');
} }
// Move the comma after the closing character
mOutput.push_back(',');
// Go back one level // Go back one level
Retreat(); Retreat();
// Allow chaining // Allow chaining