support times in default json handler

http://manage.dimagi.com/default.asp?141308