0% found this document useful (0 votes)
34 views1 page

Json PHP

This document provides an overview of PHP's JSON extension, including how to install and configure it, predefined constants, the JsonSerializable interface, and key JSON functions like json_decode(), json_encode(), and json_last_error(). It notes that the JSON extension is bundled with PHP by default as of version 5.2.0, requires no additional installation, and has no configuration directives or resource types.

Uploaded by

Mario Rossi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

Json PHP

This document provides an overview of PHP's JSON extension, including how to install and configure it, predefined constants, the JsonSerializable interface, and key JSON functions like json_decode(), json_encode(), and json_last_error(). It notes that the JSON extension is bundled with PHP by default as of version 5.2.0, requires no additional installation, and has no configuration directives or resource types.

Uploaded by

Mario Rossi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

JavaScript Object Notation (http://php.net/manual/en/book.json.

php)
Introduction Installing/Configuring Requirements Installation Runtime Configuration Resource Types Predefined Constants JsonSerializable The JsonSerializable class JsonSerializable::jsonSerialize Specify data which should be serialized to JSON JSON Functions json_decode Decodes a JSON string json_encode Returns the JSON representation of a value json_last_error Returns the last error occurred

Introduction This extension implements the JavaScript Object Notation (JSON) data-interchange format. The decoding is handled by a parser based on the JSON_checker by Douglas Crockford.

Installing/Configuring
Requirements There is no installation needed to use these functions; they are part of the PHP core. Installation As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default. Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/json Runtime Configuration This extension has no configuration directives defined in php.ini. Resource Types This extension has no resource types defined.

You might also like