response->docs); ?>
Outputs the following:
Array ( [0] => Object (
I had the same problem and I solved it with get_object_vars mentioned above.
Furthermore, I had to convert my object with json_decode and I had to iterate the array with the oldschool "for" loop (rather then for-each).