{"id":1294,"date":"2022-08-30T15:15:20","date_gmt":"2022-08-30T15:15:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/how-can-i-decode-json-in-php-5-1-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:20","modified_gmt":"2022-08-30T15:15:20","slug":"how-can-i-decode-json-in-php-5-1-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-can-i-decode-json-in-php-5-1-collection-of-common-programming-errors\/","title":{"rendered":"How can I decode json in PHP 5.1?-Collection of common programming errors"},"content":{"rendered":"<p>Before PHP 5.2, you can use the JSON PECL extension.<\/p>\n<p>In fact, it is the extension that has been integrated into PHP 5.2 <em>(quoting)<\/em> :<\/p>\n<blockquote>\n<p>As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default.<\/p>\n<\/blockquote>\n<p>\nSome other solutions would be to use some component developped in PHP.<\/p>\n<p>Some time ago (about one year ago), I used the <code>Zend_Json<\/code> component of Zend Framework, with PHP 5.1.<\/p>\n<p>Even if Zend Framework requires PHP 5.2, that component can be extracted <em>(I think it depends only on one other component &#8212; maybe <code>Zend_Exception<\/code>, or something like that)<\/em> &#8212; and one year ago, it was possible to use it with PHP 5.1.<\/p>\n<p>\nThe official JSON website also links to several PHP-based or PHP-oriented components &#8212; you might want to take a look at that list.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:15:02. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Before PHP 5.2, you can use the JSON PECL extension. In fact, it is the extension that has been integrated into PHP 5.2 (quoting) : As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default. Some other solutions would be to use some component developped in PHP. Some time ago [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-1294","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1294"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1294\/revisions"}],"predecessor-version":[{"id":8912,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1294\/revisions\/8912"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}