diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-13 07:17:48 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 18:54:34 +1030 |
commit | 73d33f25760d4d4ffb7fa8acf6a67d0f7e19fec7 (patch) | |
tree | 29e1bf0e1d0fb892eb0bdc6959f61da4b6cb639a /lua/json2lua.lua | |
parent | 5fb9fe1c67a070d1e83497c44b7b7364da9f1975 (diff) | |
download | lua-cjson-73d33f25760d4d4ffb7fa8acf6a67d0f7e19fec7.tar.gz lua-cjson-73d33f25760d4d4ffb7fa8acf6a67d0f7e19fec7.tar.bz2 lua-cjson-73d33f25760d4d4ffb7fa8acf6a67d0f7e19fec7.zip |
Rename "cjson-misc" module to "cjson.util"
Diffstat (limited to '')
-rwxr-xr-x | lua/json2lua.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/json2lua.lua b/lua/json2lua.lua index 050b89d..014416d 100755 --- a/lua/json2lua.lua +++ b/lua/json2lua.lua | |||
@@ -7,8 +7,8 @@ | |||
7 | -- ./json2lua.lua test.json | 7 | -- ./json2lua.lua test.json |
8 | 8 | ||
9 | local json = require "cjson" | 9 | local json = require "cjson" |
10 | local misc = require "cjson-misc" | 10 | local util = require "cjson.util" |
11 | 11 | ||
12 | local json_text = misc.file_load(arg[1]) | 12 | local json_text = util.file_load(arg[1]) |
13 | local t = json.decode(json_text) | 13 | local t = json.decode(json_text) |
14 | print(misc.serialise_value(t)) | 14 | print(util.serialise_value(t)) |