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

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

        return \json_encode($this->ediGroups);
    }
public function getJson ( bool $ pretty = false ) { if ( $ pretty ) { return \ json_encode ( $ this -> ediGroups , JSON_PRETTY_PRINT ) ; } return \ json_encode ( $ this -> ediGroups ) ; }
Get result as json.

@param bool $pretty

@return false|string
Get result as json .