diff --git a/include/cereal/archives/json.hpp b/include/cereal/archives/json.hpp index 9d57434ab..8f4529ab9 100644 --- a/include/cereal/archives/json.hpp +++ b/include/cereal/archives/json.hpp @@ -209,11 +209,13 @@ namespace cereal { case NodeType::StartArray: itsWriter.StartArray(); + // fall through case NodeType::InArray: itsWriter.EndArray(); break; case NodeType::StartObject: itsWriter.StartObject(); + // fall through case NodeType::InObject: itsWriter.EndObject(); break;