src/AcfExportManager.php
public function getJson(array $fieldgroup) : string
    {
        $json = json_encode($fieldgroup, JSON_PRETTY_PRINT);

        // Remove translation stuff from json
        $json = str_replace('!!__(!!\'', '', $json);
        $json = str_replace("!!', !!'" . $this->textdomain . "!!')!!", '', $json);

        return '[' . $json . "]\n\r";
    }
public function getJson(array $fieldgroup) : string
    {
        $json = json_encode($fieldgroup, JSON_PRETTY_PRINT);

        // Remove translation stuff from json
        $json = str_replace('!!__(!!\'', '', $json);
        $json = str_replace("!!', !!'" . $this->textdomain . "!!')!!", '', $json);

        return '[' . $json . "]\n\r";
    }
public function getJson ( array $ fieldgroup ) : string { $ json = json_encode ( $ fieldgroup , JSON_PRETTY_PRINT ) ; // Remove translation stuff from json $ json = str_replace ( '!!__(!!\'' , '' , $ json ) ; $ json = str_replace ( "!!', !!'" . $ this -> textdomain . "!!')!!" , '' , $ json ) ; return '[' . $ json . "]\n\r" ; }
Get fieldgroup as json
@param  array $fieldgroup
@return string
Get fieldgroup as json