How to get the JSON response of saveObjects in PHP

Hi all,

How do I get the JSON response from a saveObjects call using the PHP client?
If I do a var_dump, I see an object property with the response, but it’s private.

Thank you,

The response of saveObjects is an iterable object. So you can do this:

$response = $index->saveObjects([['objectID' => 1]]);