Christina DiIorio-Sterling, a spokeswoman for the U.S. Department of Justice, declined to comment on Swartz's case, citing respect for the family.
His funeral will be held Tuesday at a synagogue in Highland Park.
Swartz, who completed a fellowship at Harvard's Ethics Center Lab on Institutional Corruption, frequently blogged about his life, success and personal struggles. In some instances, he wrote about death.
"There is a moment, immediately before life becomes no longer worth living, when the world appears to slow down and all its myriad details suddenly become brightly, achingly apparent," he wrote in a 2007 post titled "A Moment Before Dying."
On November 27, 2007, he blogged about "depressed mood."
"Surely there have been times when you've been sad. Perhaps a loved one has abandoned you or a plan has gone horribly awry. Your face falls. Perhaps you cry. You feel worthless. You wonder whether it's worth going on," he wrote.
"Everything you think about seems bleak --- the things you've done, the things you hope to do, the people around you. You want to lie in bed and keep the lights off. Depressed mood is like that, only it doesn't come for any reason and it doesn't go for any either.
"At best, you tell yourself that your thinking is irrational, that it is simply a mood disorder, that you should get on with your life. But sometimes that is worse. You feel as if streaks of pain are running through your head, you thrash your body, you search for some escape but find none. And this is one of the more moderate forms," he wrote.