Pickle\Package\Util\JSON\Dumper::dump PHP Method

dump() public method

public dump ( Pickle\Base\Interfaces\Package $package, $with_version = true ) : string
$package Pickle\Base\Interfaces\Package
return string
    public function dump(Interfaces\Package $package, $with_version = true)
    {
        return json_encode((new Util\Dumper())->dump($package, $with_version), JSON_PRETTY_PRINT);
    }