Alternative sentencing (which might keep you out of jail or get your charges dismissed or reduced) is sometimes available if:
You are a Veteran from any branch of the United States Military
You committed an offense due to an underlying drug addiction
You are a first time offender and committed a non-violent crime