Here's an instance where crime actually pays.

The New York Post says low-level defendants are being given surveys — to rate prosecutors and judges at courts in Manhattan.

Once completed, participants receive a $15 gift card to Dunkin' Donuts.

It's all part of a new initiative by the Mayor's office to make courtrooms more user-friendly.

NY1 previewed the first phase last week — including new signs explaining the justice system.

Some judges and other court officials are expected to undergo courtesy training next month.