diff --git a/src/util/json/serializer.cpp b/src/util/json/serializer.cpp index e724529..ae56d58 100644 --- a/src/util/json/serializer.cpp +++ b/src/util/json/serializer.cpp @@ -5,7 +5,6 @@ */ #include // uint32_t -#include // prev #include // ostringstream #include @@ -120,7 +119,7 @@ std::string Serializer::dumpObject(const Value& value, const uint32_t indentLeve result += dumpHelper(it->second, indentLevel + 1); // Add comma, except after the last element - if (it != std::prev(members.end(), 1)) { + if (it != members.end()) { result += ","; } if (m_indent > 0) {