tuple to json
Merge branch 'master' of https://github.com/edwardt/ejabberd-modules