I now have the read code skipped if the headers contain 'application/json' as the mimetype.