[wp-trac] [WordPress Trac] #11963: json_decode() only supports only "stdClass Object" but no "array"

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 28 04:42:47 UTC 2010


#11963: json_decode() only supports only "stdClass Object" but no "array"
-------------------------+--------------------------------------------------
 Reporter:  carbolineum  |        Owner:        
     Type:  enhancement  |       Status:  closed
 Priority:  normal       |    Milestone:  3.0   
Component:  General      |      Version:  2.9.1 
 Severity:  normal       |   Resolution:  fixed 
 Keywords:  needs-patch  |  
-------------------------+--------------------------------------------------

Comment(by dd32):

 (In [13863]) Implement the 2nd parameter of json_decode() for back-compat
 purposes. Returns an associative array instead of an object. For the
 recursive object handling, Props carbolineum. Fixes #11963

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11963#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list