Sugestion Zend_Json_Decoder::decode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Sugestion Zend_Json_Decoder::decode

Fernando Andre
This post has NOT been accepted by the mailing list yet.
Hello,

Is it possible to make a change into the Zend_Json_Decoder to make it return a Model
I specify instead of a stdClass?

Example:
$a = Zend_Json_Decoder::decode($HtmlJsonbody, "DM_Model_Network");
foreach ($a as $network ) {
 $network->update($VAR);
}

I have made this possible but would like it to be directly inside Zend_Json instead of having to always change the code when theres a new version of Zend Framework.

Best regards,
FR