public function JsonDecode::__construct

Constructs a new JsonDecode instance.

Parameters

Boolean $associative True to return the result associative array, false for a nested stdClass hierarchy:

integer $depth Specifies the recursion depth:

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonDecode.php, line 44

Class

JsonDecode
Decodes JSON data

Namespace

Symfony\Component\Serializer\Encoder

Code

public function __construct($associative = false, $depth = 512) {
  $this->associative = $associative;
  $this->recursionDepth = (int) $depth;
}