WordPress at a glance
function is not described

WP_Customize_Control::json() public WP 4.1.0

Get the data to export to the client via JSON.

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

No Hooks.

Return

Array. Array of parameters passed to the JavaScript.

Usage

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

Changelog

Since 4.1.0 Introduced.

Code of WP_Customize_Control::json() WP 5.5.1

<?php
public function json() {
	$this->to_json();
	return $this->json;
}