Hardening preferedSuccesMediaType for json
Hardened successMediaType() detection