fixes a performance regression for json handling
support for LuaJIT