Issue Type: Improvement Created: 2010-03-23T13:08:32.000+0000 Last Updated: 2012-05-08T22:52:00.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)
Reporter: Mikolaj Siedlarek (mikoskay) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Json
Related issues: - ZF-5974
Attachments: - ZF-9521_adamlundrigan.patch
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.
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
Have you found an issue?
See the Overview section for more details.