Note: This manual is provided for your convenience only - this is not the official source and may not be 100% up to date.

JSON Functions

LXXIII. JSON Functions

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.

Requirements

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

Table of Contents
json_decode -- Decodes a JSON string
json_encode -- Returns the JSON representation of a value