Jamie Foxx has said that the hacking of Sony Entertainment and the leaking of private emails meant that if the same were to happen to him, he would not be able to live in America.

The hackers of Sony, who claim to be the "Guardians of Peace" (GOP), have released emails relating to celebrities such as George Clooney, Leonardo DiCaprio, Jennifer Lawrence and Channing Tatum.

In many, Sony Pictures co-chair Amy Pascal is apparently critical of a number of high profile actors.

Talking to the Associated Press during the promotion of his new film Annie, Foxx argued that the leaked emails were taken out of context and that it was bad to judge people on the leaked emails.

Sony Cyber Attack: The Worst Affected In Hollywood Show all 13 1 /13 Sony Cyber Attack: The Worst Affected In Hollywood Sony Cyber Attack: The Worst Affected In Hollywood Leonardo DiCaprio The actor's 'horrible behaviour' over Steve Jobs biopic was branded 'actually despicable' in leaked Sony executive emails Getty Images Sony Cyber Attack: The Worst Affected In Hollywood Seth Rogen Seth Rogen and James Franco cancel Interview (North Korea-baiting film) press appearances after Sony hackers' threats Sony Cyber Attack: The Worst Affected In Hollywood James Franco Seth Rogen and James Franco cancel Interview press appearances after Sony hackers' threats AP Sony Cyber Attack: The Worst Affected In Hollywood Aaron Sorkin The screenwriter has said that the people who hacked into Sony Entertainment Pictures and released private emails are 'threatening the lives of whole families' Theo Wargo | Getty Images for Nantucket Film Festival Sony Cyber Attack: The Worst Affected In Hollywood Amy Pascal Also leaked: Sony Pictures co-chair Amy Pascal's email joking about President Barack Obama's race Getty Images Sony Cyber Attack: The Worst Affected In Hollywood George Clooney Leaked email chain between Pascal and George Clooney appeared to reveal just how much the actor struggled to cope with the criticism of his The Monuments Men Getty Sony Cyber Attack: The Worst Affected In Hollywood Barack Obama Sony executives Scott Rudin and Amy Pascal's leaked email exchange jokes about Barack Obama favouring films with black actors Getty Sony Cyber Attack: The Worst Affected In Hollywood Channing Tatum Channing Tatum's leaked Sony executive email responding to the success of 22 Jump Street with Jonah Hill, which became the highest grossing R-rated comedy ever when it opened in June this year Getty Images Sony Cyber Attack: The Worst Affected In Hollywood Jaden and Willow Smith Will Smith and Jada Pinkett Smith's children Willow and Jaden Smith found themselves in the Sony inbox as well Getty Sony Cyber Attack: The Worst Affected In Hollywood Mark Gordon DiCaprio's exchange with Jobs TV producer Mark Gordon (pictured) was leaked too Getty Images Sony Cyber Attack: The Worst Affected In Hollywood Princess Beatrice Sony hackers linked to North Korea revealed Princess Beatrice earns $30,000 a year Sony Cyber Attack: The Worst Affected In Hollywood Michael Fassbender Aaron Sorkin's leaked emails claimed he had no idea who actor Michael Fassbender (pictured) was Getty Images Sony Cyber Attack: The Worst Affected In Hollywood Scott Rudin Information leaked has also included embarrassing emails involving high profile producer Scott Rudin attacking Angelina Jolie Getty Images

"For a person who started out as a comedian, the world is really sort of strange and I think that’s a bad road to go down."

In one alleged email exchange between Pascal and film producer Scott Rudin, the pair suggested films that US President Barack Obama might like according to whether or not they were directed by someone black or whether they featured black actors.

Foxx was a stand-up comedian before he got into acting in the early nineties, and he said that the recent news that had come out from the leaks did not make him think anyone was "the worst person".

"You can’t lock down the context of it and I think it's a dangerous thing. I think what we should focus on is the people that are doing the hacking.

"Obviously, as far as our emails are concerned, we have to got to be very careful...So I feel bad for those people who have been hacked."

During the summer, the North Korean regime warned that Sony's release of the film The Interview represented "an act of war" that would lead to "merciless" retaliation against the US.