public function formatArray($content)
    {
        $content = $this->morphToArray($content);

        \array_walk_recursive($content, function (&$value) {
            $value = $this->morphToArray($value);
        });

        return $this->encode($content);
    }