diff --git a/tiny_gltf.h b/tiny_gltf.h index 2bec32c..c38f815 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -3279,7 +3279,7 @@ static void SerializeValue(const std::string &key, const Value &value, obj[key] = jsonValue; } else { json jsonValue; - std::vector valueKeys; + std::vector valueKeys = value.Keys(); for (unsigned int i = 0; i < valueKeys.size(); ++i) { Value elementValue = value.Get(valueKeys[i]); if (elementValue.IsInt())