global.php
Interfaces, Classes, Traits and Enums
Table of Contents
- JSON_THROW_ON_ERROR = 1 << 22
- json5_decode() : mixed
- Takes a JSON encoded string and converts it into a PHP variable.
Constants
JSON_THROW_ON_ERROR
public
mixed
JSON_THROW_ON_ERROR
= 1 << 22
Functions
json5_decode()
Takes a JSON encoded string and converts it into a PHP variable.
json5_decode(string $source[, bool $associative = false ][, int $depth = 512 ], int $options) : mixed
The parameters exactly match PHP's json_decode() function - see http://php.net/manual/en/function.json-decode.php for more information.
Parameters
- $source : string
-
The JSON string being decoded.
- $associative : bool = false
-
When TRUE, returned objects will be converted into associative arrays.
- $depth : int = 512
-
User specified recursion depth.
- $options : int
-
Bitmask of JSON decode options.