Add body to the error message when jsonData can't parse.
Split 'header' into 'setHeader' and 'addHeader'