note 80700 deleted from function.json-encode by nlopess

From: Date: Tue, 29 Jan 2008 15:35:22 +0000
Subject: note 80700 deleted from function.json-encode by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-135552@lists.php.net to get a copy of this message
Note Submitter: dtmsnoopy ---- Am I correct to assume that json_encode does not work with PHP objects? While json_decode is does create a PHP object from a JSON string, it seems to as if json_encode does only accept (associative) arrays as input parameter. Wouldn't it be need to be able to transform an entire PHP object directly into a JSON string? Or did I just miss something?

« previous php.notes (#135552) next »