WordPress at a glance
function is not described

WP_Customize_Sidebar_Section::json() public WP 4.1.0

Gather the parameters passed to client JavaScript via JSON.

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

No Hooks.

Return

Array. The array to be exported to the client as JSON.

Usage

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

Changelog

Since 4.1.0 Introduced.

Code of WP_Customize_Sidebar_Section::json() WP 5.7.2

<?php
public function json() {
	$json              = parent::json();
	$json['sidebarId'] = $this->sidebar_id;
	return $json;
}