WordPress at a glance
function is not described

WP_Customize_Setting::json() public WP 4.6.0

Retrieves the data to export to the client via JSON.

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

No Hooks.

Return

Array. Array of parameters passed to JavaScript.

Usage

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

Changelog

Since 4.6.0 Introduced.

Code of WP_Customize_Setting::json() WP 5.7.2

<?php
public function json() {
	return array(
		'value'     => $this->js_value(),
		'transport' => $this->transport,
		'dirty'     => $this->dirty,
		'type'      => $this->type,
	);
}