to_json() public method

Refresh the parameters passed to the JavaScript via JSON.
Since: 3.4.0
public to_json ( )
 public function to_json()
 {
     parent::to_json();
     $this->json['alpha'] = $this->alpha;
 }
 public function to_json()
 {
     parent::to_json();
     $this->json['palette'] = $this->palette;
     $this->json['default'] = $this->default;
     $this->json['value'] = $this->value();
     $this->json['link'] = $this->get_link();
 }