add compatibility for json_encode for old PHP 5.2
Merge branch 'master' of https://github.com/inboundnow/leads