diff --git a/src/Composer/ComposerPackage.php b/src/Composer/ComposerPackage.php
index 15fc83bdc9ba52497cb34e6286896efd2ebffa7c..5912451f5e81a0ceb955174338fbd242f0051477 100644
--- a/src/Composer/ComposerPackage.php
+++ b/src/Composer/ComposerPackage.php
@@ -109,6 +109,9 @@ final class ComposerPackage implements ComposerPackageInterface
         $content = file_get_contents($composerPath);
         Assertion::string($content, "could not read `$composerPath`");
 
-        return $this->composerJson = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
+        $this->composerJson = json_decode($content, true);
+        Assertion::isArray($this->composerJson);
+
+        return $this->composerJson;
     }
 }