Juice first confessed the killing of Miles and his African background to Clay and then later to Jax when he started getting close to the truth. Jax offered Juice a pardon if he agreed to get evidence on Clay for the home invasions that were happening in season 5 or else he would tell the club his secrets.
Since Juice snitched Nero about Jax making him kill the heroin addict. I'm sure Jax told the club how much of a piece of shyt Juice is. Miles was framed for stealing the cocaine bricks then the Sons buried him and posthumously stripped of him of his patch thinking he was the disloyal rat while Juice watched.
What's funny is that nobody cared that Juice was part black. Clay didn't care, Chibs didn't care (isn't his wife black?), and neither did Jax. I doubt they would have done anything to him if he confessed to the sons before complying with Roosevelt.
Dude let Roosevelt punk him over that shyt like he was in a KKK club.