Closed (fixed)
Project:
Http Client
Version:
7.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2013 at 08:44 UTC
Updated:
27 Dec 2013 at 21:25 UTC
Jump to comment: Most recent
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
| Comment | File | Size | Author |
|---|---|---|---|
| httpclient-json-unserialization.patch | 561 bytes | ndeschildre |
Comments
Comment #1
dashohoxha commented