The man who was arrested armed with a knife outside Crown Princess Victoria's residence in Hagaparken is being detained, the prosecutor announces.
He is suspected of preparing for aggravated assault and serious violation of the knife law.
The case is being handled by Säpo.
It was on Wednesday that the man was checked when he was in the area and "behaved strangely", according to the police. The police then found a knife.