json.h: Fix array template

Using `{begin|end}_object` inserts curly braces instead of square brackets, which can result in reordering (and may be syntactically incorrect?).
This commit is contained in:
Krystine Sherwin 2025-01-10 05:59:47 +13:00
parent 133232f659
commit cab7f1554c
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -90,10 +90,10 @@ public:
template<typename T>
void array(const T &&values)
{
begin_object();
begin_array();
for (auto &item : values)
value(item);
end_object();
end_array();
}
};