be careful not to brake the glass when digging out
)
Most glass jars have metal lids, and metal will rust and eventually crumble if left exposed in soil. You're better off putting your jars in a larger waterproof plastic container and burying the plastic container. This will also help protect the jars when you dig 'em up, as 001 cautioned.
That being said, I don't think there'll be any problems with burying your bud. I think it'll be a great way to get a good long term cure because it's dark and cool underground. Just be sure you're well past the burping stage, the buds need to be dried completely before you store 'em long term.