Cascade\Config\Loader\FileLoader\Json::load PHP Method

load() public method

Load a JSON string/file
public load ( string $resource, string | null $type = null ) : array
$resource string JSON string or file path to a JSON file
$type string | null Not used.
return array Array containing data from the parsed JSON string or file
    public function load($resource, $type = null)
    {
        return json_decode($this->readFrom($resource), true);
    }