Jack McCoy probably thinks he is lawful good, but is actually more neutral. He breaks and bends the rules he claims to follow way too often to be lawful.