Req #44331 [Csd]: Formatting option for json_encode

From: Date: Thu, 21 Jul 2011 15:35:23 +0000
Subject: Req #44331 [Csd]: Formatting option for json_encode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162083@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=44331&edit=1 ID: 44331 Updated by: rasmus@php.net Reported by: jeremy at duckwizard dot com Summary: Formatting option for json_encode Status: Closed Type: Feature/Change Request Package: JSON related Operating System: Debian Stable PHP Version: 5.2.5 Assigned To: aharvey Block user comment: N Private report: N New Comment: This is a PHP 5.4 feature. Previous Comments: ------------------------------------------------------------------------ [2011-07-21 09:04:31] joined_up_typeski at yahoo dot com PHP Version 5.3.5-pl0-gentoo JSON 1.2.1 passing JSON_PRETTY_PRINT to the function means that I get no output at all from PHP. ------------------------------------------------------------------------ [2011-04-29 19:11:37] php at mjpa dot co dot uk This has not been implemented... ------------------------------------------------------------------------ [2010-09-16 18:21:59] aharvey@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. The trunk version of json_encode() will now accept a JSON_PRETTY_PRINT option. ------------------------------------------------------------------------ [2010-09-16 18:21:17] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=303425 Log: Implement FR #44331 (Formatting option for json_encode). Bikeshedding about the exact form of the JSON pretty printing and brace handling will only be accepted in the form of patches. ;) ------------------------------------------------------------------------ [2009-12-08 12:05:52] pankaj dot khairnar at live dot com yes it will be a real nice feature of json_encode function and I am expecting it to same. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=44331 -- Edit this bug report at https://bugs.php.net/bug.php?id=44331&edit=1

« previous php.bugs (#162083) next »