WordPress at a glance
function is not described

WP_Customize_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_Section{}

No Hooks.

Return

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

Usage

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

Changelog

Since 4.1.0 Introduced.

Code of WP_Customize_Section::json() WP 5.5.1

<?php
public function json() {
	$array                   = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type', 'description_hidden' ) );
	$array['title']          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
	$array['content']        = $this->get_content();
	$array['active']         = $this->active();
	$array['instanceNumber'] = $this->instance_number;

	if ( $this->panel ) {
		/* translators: &#9656; is the unicode right-pointing triangle. %s: Section title in the Customizer. */
		$array['customizeAction'] = sprintf( __( 'Customizing &#9656; %s' ), esc_html( $this->manager->get_panel( $this->panel )->title ) );
	} else {
		$array['customizeAction'] = __( 'Customizing' );
	}

	return $array;
}