To be used in JSON exceptions