Sets the reponse header for json