summaryrefslogtreecommitdiff
path: root/tests/modules/json/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/json/test.lua')
-rwxr-xr-xtests/modules/json/test.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modules/json/test.lua b/tests/modules/json/test.lua
index b2e53481b..b0e88112b 100755
--- a/tests/modules/json/test.lua
+++ b/tests/modules/json/test.lua
@@ -3,12 +3,12 @@ import("core.base.json")
local json_null = json.null
local json_pure_null = json.purenull
-function json_decode(jsonstr)
- return json.decode(jsonstr)
+function json_decode(jsonstr, opt)
+ return json.decode(jsonstr, opt)
end
-function json_encode(luatable)
- return json.encode(luatable)
+function json_encode(luatable, opt)
+ return json.encode(luatable, opt)
end
function json_pure_decode(jsonstr)