src/SubnetCalculator.php
public function getSubnetJsonReport()
    {
        $json = $this->report->createJsonReport($this);

        if ($json === false) {
            throw new \RuntimeException('JSON report failure: ' . json_last_error_msg());
        }

        return $json;
    }
public function getSubnetJsonReport()
    {
        $json = $this->report->createJsonReport($this);

        if ($json === false) {
            throw new \RuntimeException('JSON report failure: ' . json_last_error_msg());
        }

        return $json;
    }
public function getSubnetJsonReport ( ) { $ json = $ this -> report -> createJsonReport ( $ this ) ; if ( $ json === false ) { throw new \ RuntimeException ( 'JSON report failure: ' . json_last_error_msg ( ) ) ; } return $ json ; }
Get subnet calculations as a JSON string

@return string JSON string of subnet calculations

@throws \RuntimeException if there is a JSON encode error
Get subnet calculations as a JSON string