Nested breadcrumb using zend-navigation

what is the differences between using ‘navigation’ as a key in configuration array in Application/config/module.config.php ,as the file returns an array, and $navigation = new Zend\Navigation\Navigation([])? I know how to use the ‘navigation’ key in script but i cannot put nested ‘pages’ in this way:

'navigation' => [
    'default' => [
        [
            'label' => 'Home',
            'route' => 'home',
        ],
        [
            'label' => 'Blog',
            'route' => 'blog',
            'pages' => [
                [
                    'label'  => 'All',
                    'route'  => 'blog',
                    'action' => 'index',
                ],

                [
                    'label'=>'category',
                    'route'=>'blog/category',
                    'action'=>'category',
                    'pages'=>[
                            'label'=>'detail',
                            'route'  => 'blog/detail',
                            'action' => 'detail',

                    ]
                ],

            ],
        ],
    ],

],

the ‘page’ under the label ‘category’ causes an error. my main problem I don’t exactly know how to use the code you provided as an example with $navigation = new Zend\Navigation\Navigation([]) in the configuration array.would you please give me a sample to bring me out of this confusion?