public function payload($payload, $format = '', $container = 'data')
    {
        $class = $this->getFormatClass($format);
        return $this->generate($payload, new $class, $container);
    }
public function payload($payload, $format = '', $container = 'data')
    {
        $class = $this->getFormatClass($format);
        return $this->generate($payload, new $class, $container);
    }
public function payload ( $ payload , $ format = '' , $ container = 'data' ) { $ class = $ this -> getFormatClass ( $ format ) ; return $ this -> generate ( $ payload , new $ class , $ container ) ; }
Format the payload array, autodetect format.
Override the format by providing a content type.

@param string $format
@param string $container

@return array
Format the payload array autodetect format . Override the format by providing a content type .