[PHP-BUG] Req #68178 [NEW]: JSON Native Support
[email protected] ("php at xkr dot es")
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
From: php at xkr dot es
Operating system: N/A
PHP version: Irrelevant
Package: PHP Language Specification
Bug Type: Feature/Change Request
Bug description:JSON Native Support
Description:
------------
It will be fine if native support of JSON blocks will be added in the
future to the language specification. The functions json_encode and
json_decode provides the functionality, but it will be better if they
were native supported.
For example, instead of doing:
$a=Array(Array("a"=>"b","c"=>CONST,"d"=>null),Array("e"=>1.23),Array("f"=>true));
You could do:
$a=[{"a":"b","c":CONST,"d":null},{"e":1.23},{"f":true}];
As you can see, JSON it's very compact and it's easy to read, also it
distinguishes about arrays and hashes, so its better to understand.
I hope this comment will be considered for next versions.
Best regards.
--
Edit bug report at https://bugs.php.net/bug.php?id=68178&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68178&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68178&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68178&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68178&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68178&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68178&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68178&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68178&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68178&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68178&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68178&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68178&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68178&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68178&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68178&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68178&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68178&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68178&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68178&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68178&r=mysqlcfg