Stop script execution after output of json-data so content type header is correct.