Rational synthesis of an exceptionally stable Zn(II) metal-organic framework for the highly selective and sensitive detection of picric acid.