Formatting output with json_encode

From: Date: Mon, 14 Jul 2008 06:21:23 +0000
Subject: Formatting output with json_encode
Groups: php.db 
Request: Send a blank email to php-db+get-45143@lists.php.net to get a copy of this message
I am using json_encode to output the results of a mySQL query which is part of a jquery & ajax. $result = json_encode($array); echo $result; The output on my screen is: {0:"John 14:27","verse_reference":"John 14:27"} How do I format json_encode output? I would like John 14:27 to be what is displayed. Ron

« previous php.db (#45143) next »