If the ticket is for possession then there are some clear legals steps that must be taken for it to stick.
#1 weed found and confiscated
#2 weighed in your presence
#3 you sign an agreement stating you witnesssed the weigh and agree it was yours.
without all that its not gonna stick and I question the cop even trying since he knows that. What country you in?