diff --git a/tiny_gltf.h b/tiny_gltf.h index c3958e5..3b526c0 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -4833,7 +4833,7 @@ static void SerializeExtensionMap(ExtensionMap &extensions, json &o) { if (!(extIt->first.empty())) { // name should not be empty, but for sure // create empty object so that an extension name is still included in // json. - extMap[extIt->first] = json({}); + extMap[extIt->first] = json(std::initializer_list>>()); } } }