occurrences.as_json include user id if it's an assignment ( nil if schedule )