diff options
Diffstat (limited to '')
| -rwxr-xr-x | tests/encode.lua | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tests/encode.lua b/tests/encode.lua index f13787c..a8d749a 100755 --- a/tests/encode.lua +++ b/tests/encode.lua | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | -- ./encode.lua lua_data.lua | 7 | -- ./encode.lua lua_data.lua | 
| 8 | 8 | ||
| 9 | require "common" | 9 | require "common" | 
| 10 | require "cjson" | 10 | local json = require "cjson" | 
| 11 | 11 | ||
| 12 | function get_lua_table(file) | 12 | function get_lua_table(file) | 
| 13 | local func = loadstring("data = " .. file_load(file)) | 13 | local func = loadstring("data = " .. file_load(file)) | 
| @@ -23,6 +23,6 @@ function get_lua_table(file) | |||
| 23 | end | 23 | end | 
| 24 | 24 | ||
| 25 | local t = get_lua_table(arg[1]) | 25 | local t = get_lua_table(arg[1]) | 
| 26 | print(cjson.encode(t)) | 26 | print(json.encode(t)) | 
| 27 | 27 | ||
| 28 | -- vi:ai et sw=4 ts=4: | 28 | -- vi:ai et sw=4 ts=4: | 
