WordPress at a glance
function is not described

WP_Customize_Nav_Menu_Section::json() public WP 4.3.0

Get section parameters for JS.

{} It's a method of the class: WP_Customize_Nav_Menu_Section{}

No Hooks.

Return

Array. Exported parameters.

Usage

$WP_Customize_Nav_Menu_Section = new WP_Customize_Nav_Menu_Section();
$WP_Customize_Nav_Menu_Section->json();

Changelog

Since 4.3.0 Introduced.

Code of WP_Customize_Nav_Menu_Section::json() WP 5.7.2

<?php
public function json() {
	$exported            = parent::json();
	$exported['menu_id'] = (int) preg_replace( '/^nav_menu\[(-?\d+)\]/', '$1', $this->id );

	return $exported;
}