Hello,

When parsing a JSON body result, a 'Unserialization of response body failed.' exception is thrown incorrectly on NULL-encoded JSON values. (e.g. returning "null" or "").
Please find attached a patch that will check that json_last_error() tells that there is an error before throwing the exception.

Nicolas

CommentFileSizeAuthor
httpclient-json-unserialization.patch561 bytesndeschildre
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dashohoxha’s picture

Issue summary: View changes
Status: Active » Closed (fixed)