How to fix json module not found error on echotest.lua

Hi, I enabled lua plugin, but when I started janus got this error:

Loading plugin 'libjanus_lua.so'...
[ERR] [plugins/janus_lua.c:janus_lua_init:1417] Error loading Lua script /usr/local/share/janus/lua/echotest.lua: /usr/local/share/janus/lua/echotest.lua:7: module 'json' not found:
        no field package.preload['json']
        no file '/usr/local/share/lua/5.3/json.lua'
        no file '/usr/local/share/lua/5.3/json/init.lua'
        no file '/usr/local/lib/lua/5.3/json.lua'
        no file '/usr/local/lib/lua/5.3/json/init.lua'
        no file '/usr/share/lua/5.3/json.lua'
        no file '/usr/share/lua/5.3/json/init.lua'
        no file './json.lua'
        no file './json/init.lua'
        no file '/usr/local/share/janus/lua/json.lua'
        no file '/usr/local/share/janus/lua/json.lua'
        no file '/usr/local/lib/lua/5.3/json.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.3/json.so'
        no file '/usr/lib/lua/5.3/json.so'
        no file '/usr/local/lib/lua/5.3/loadall.so'
        no file './json.so'
[WARN] The 'janus.plugin.lua' plugin could not be initialized

The demo has a few dependencies that are listed in the source code itself:

The tool to install dependencies is called luarocks IIRC, so something like:

luarocks install luajson lua-term

should do the trick.

Thankyou. Worked fine!