Array To Json Postgresql Date