2C:2-11. De minimis infractions
The assignment judge may dismiss a prosecution if, having regard to the nature of the conduct charged to constitute an offense and the nature of the attendant circumstances, it finds that the defendant's conduct:
a. Was within a customary license or tolerance, neither expressly negated by the person whose interest was infringed nor inconsistent with the purpose of the law defining the offense;
b. Did not actually cause or threaten the harm or evil sought to be prevented by the law defining the offense or did so only to an extent too trivial to warrant the condemnation of conviction; or
c. Presents such other extenuations that it cannot reasonably be regarded as envisaged by the Legislature in forbidding the offense. The assignment judge shall not dismiss a prosecution under this section without giving the prosecutor notice and an opportunity to be heard. The prosecutor shall have a right to appeal any such dismissal.