ZF-9521: Encoding array of objects implementing toJson() method
Description
It would be much more convenient if the Zend_Json could properly encode array of objects having toJson() method. I wrote just a few additional lines to have this working locally. It's just all about DRY.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2011-08-28T04:57:49.000+0000
Attached patch with possible implementation of the requested feature + unit test
Posted by Pádraic Brady (padraic) on 2011-08-28T13:49:28.000+0000
I've reviewed the patch and confirm it operates as intended. Recommend committing to trunk (need to check with Matthew on adding to release branch as it adds to the API). Please ensure a ZF2 git pull request including matching changes is issued for ZF2 before resolving.
Posted by Adam Lundrigan (adamlundrigan) on 2011-08-28T16:09:17.000+0000
Committed to trunk in r24424
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-11T00:13:44.000+0000
Fix merged into ZF2 via PR-364
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-08T22:52:00.000+0000
Was fixed in 1.12.0 @ r24424