If found out that I needed to require("JSON") instead of require("json") The later would be the suitable import for the C-implementation lua-json. But I wanted the pure lua lua-json.
require("JSON")
require("json")