summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/configuration.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/configuration.lua b/tools/configuration.lua
index e59df1e3..285ac334 100644
--- a/tools/configuration.lua
+++ b/tools/configuration.lua
@@ -32,6 +32,9 @@ local function getDefault(temp)
if default == nil and temp.hasDefault then
default = json.null
end
+ if type(default) == 'table' and getType(temp) == 'object' then
+ setmetatable(default, json.object)
+ end
return default
end