From 85c768084b2887fdec1c4538b6aafb2cb9e1d102 Mon Sep 17 00:00:00 2001
From: Niels Lohmann <mail@nlohmann.me>
Date: Sun, 30 Jul 2017 20:01:31 +0200
Subject: [PATCH] :hammer: using emplace

---
 src/json.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/json.hpp b/src/json.hpp
index d5fad77b..92e2b06d 100644
--- a/src/json.hpp
+++ b/src/json.hpp
@@ -2967,7 +2967,7 @@ class parser
 
                     if (keep and keep_tag and not value.is_discarded())
                     {
-                        result.m_value.object->operator[](std::move(key)) = std::move(value);
+                        result.m_value.object->emplace(std::move(key), std::move(value));
                     }
 
                     // comma -> next value