adds JSON constraint hashing