/usr/share/lua/5.2/json.lua is in lua-json 1.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local decode = require("json.decode")
local encode = require("json.encode")
local util = require("json.util")
local is_52 = _VERSION == "Lua 5.2"
local _G = _G
if is_52 then
_ENV = nil
end
local json = {
decode = decode,
encode = encode,
util = util
}
if not is_52 then
_G.json = json
end
return json
|