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     ->map(function(FileAttributes $item) { return $item->path(); })

    ->toArray();



$mainInformation = json_decode($mainComposer, true);



foreach ($otherComposers as $composerFile) {

    $information = json_decode($filesystem->read($composerFile), true);
<?php $mainInformation = json_decode($mainComposer, true);



foreach ($otherComposers as $composerFile) {

    $information = json_decode($filesystem->read($composerFile), true);



    foreach ($information['require'] as $dependency => $constraint) {

        if (strpos($dependency, 'ext-') === 0) {