From 45ef51e214a3efcb334bcbe1cddea36cb48c0bd6 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 20 Oct 2026 22:26:07 +0200 Subject: [PATCH] Regenerate the amalgamated headers Signed-off-by: Niels Lohmann --- single_include/nlohmann/json_view.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index fb6b31ee9..f1334bc3f 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -3518,15 +3518,15 @@ class view_serializer m_out.finish(); return; } - frame& f = stack.back(); - if (f.pos == f.end) + if (stack.back().pos == stack.back().end) { - const bool object = f.object; // (f dangles after pop_back) + const bool object = stack.back().object; stack.pop_back(); newline(stack.size()); m_out.put(object ? '}' : ']'); continue; } + frame& f = stack.back(); if (!f.first) { m_out.put(',');