News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Clay Loveless' Blog:
PHP and JSON Cut #987
March 01, 2007 @ 08:43:00

In a new post today, Clay Loveless talks about some issues he's been having with PHP and JSON, specifically with the JSON encoding method in PHP 5.2.1.

As of PHP 5.2.1, json_decode() no longer follows the published standards for JSON-encoded texts. Why not? For no reason other than the convenience of those ignorant of JSON standards.

His complaint stems from the results of a vat_dump statement - prior to this version it would give a NULL, but now it returns a "bool(true)" value back, resulting in some breakage of previous scripts. He spends the rest of the post explaining his voyage through the JSON world and how things are supposed to behave. He also digs a little deeper into the var_dump issue and why he thinks it's such a bad thing.

0 comments voice your opinion now!
json vardump null true strict adhere extension standard json vardump null true strict adhere extension standard


blog comments powered by Disqus

Similar Posts

Christian Stocker's Blog: php xslcache extension by the New York Times

Paul Jones' Blog: PHP-FIG: PSR 1 and 2 Accepted

Konr Ness' Blog: Zend_Config Benchmark - JSON, Array, INI, XML, YAML

Zend Developer Zone: PHP Abstract Podcast Episode 27: Introducing PECL Picks

Martin Sik's Blog: How to "steal" Google's "did you mean" feature


Community Events





Don't see your event here?
Let us know!


language framework community list podcast threedevsandamaybe wordpress unittest developer refactor opinion install laravel release interview code testing series api introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework