/usr/share/lua/5.2/json/encode.lua is in lua-json 1.3.3-1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/lua/5.2/json/../../5.1/json/encode.lua
/usr/share/lua/5.2/json/../../5.1/json/encode.lua