print JSON response if it could not be encoded