json_decode

Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL json >= 1.2.0
Decodes a JSON string
<?php json_decode(    string $json,    ?bool $associative = null,    int $depth = 512,    int $flags = 0): mixed
<?php             return;

        }



        $data = json_decode(

            $contents,

            true,

        );



        if ($data === null) {

            return;
<?php         $this->toBeJson();




        $value = json_decode($this->value, true, 512, JSON_THROW_ON_ERROR);



        return $this->and($value);

    }
<?php         foreach ($placesToCheck as $location) {

            if (array_key_exists(self::GLOBAL_PREFIX.$key, $location)) {


                return json_decode((string) $location[self::GLOBAL_PREFIX.$key], true, 512, JSON_THROW_ON_ERROR)['value'] ?? null;

            }

        }
<?php     try {

        $xml = new SimpleXMLElement(preg_replace("/(<\/?)(\w+):([^>]*>)/", '$1$2$3', $rawXmlContent));



        return json_decode(json_encode((array) $xml), true);

    } catch (Exception $exception) {

        throw new XmlParseException($exception->getMessage(), $exception->getCode(), $exception->getPrevious());

    }