arangodb-php icon indicating copy to clipboard operation
arangodb-php copied to clipboard

HttpResponse uses json_decode($body, true); - changes data with empty objects

Open MymmiJ opened this issue 6 years ago • 0 comments
trafficstars

HttpResponse.php using json_decode($body, true); means that empty objects get translated to arrays, which breaks some of our stuff.

We've extended DocumentHandler in order to override the getDocument method, but I think a better solution might be to provide the ability to decide whether an item is decoded into associative arrays or objects, as this was not obvious default behaviour to us.

MymmiJ avatar May 14 '19 10:05 MymmiJ