Fixed json parsing to handle null dates properly.