Metasploit uses [MessagePack](http://msgpack.org) now. There is a Lua library available, but that would require users to recompile Nmap.