public function getJsonServiceSegments(bool $pretty = false)
    {
        if ($pretty) {
            return \json_encode($this->serviceSeg, JSON_PRETTY_PRINT);
        }

        return \json_encode($this->serviceSeg);
    }
public function getJsonServiceSegments(bool $pretty = false)
    {
        if ($pretty) {
            return \json_encode($this->serviceSeg, JSON_PRETTY_PRINT);
        }

        return \json_encode($this->serviceSeg);
    }
public function getJsonServiceSegments ( bool $ pretty = false ) { if ( $ pretty ) { return \ json_encode ( $ this -> serviceSeg , JSON_PRETTY_PRINT ) ; } return \ json_encode ( $ this -> serviceSeg ) ; }
Get json service segments.

@param bool $pretty

@return false|string
Get json service segments .