src/modules/setting/models/Setting.php
public function validateJson ($attribute)
		{
			if (!$this->hasErrors())
			{
				if (!( is_string($this->$attribute) && is_array(json_decode($this->$attribute, true)) && ( json_last_error() == JSON_ERROR_NONE ) ))
					$this->addError($attribute, Yii::tr('This field must be well-formed JSON.', [], 'setting'));
			}
		}
public function validateJson ($attribute)
		{
			if (!$this->hasErrors())
			{
				if (!( is_string($this->$attribute) && is_array(json_decode($this->$attribute, true)) && ( json_last_error() == JSON_ERROR_NONE ) ))
					$this->addError($attribute, Yii::tr('This field must be well-formed JSON.', [], 'setting'));
			}
		}
public function validateJson ( $ attribute ) { if ( ! $ this -> hasErrors ( ) ) { if ( ! ( is_string ( $ this -> $ attribute ) && is_array ( json_decode ( $ this -> $ attribute , true ) ) && ( json_last_error ( ) == JSON_ERROR_NONE ) ) ) $ this -> addError ( $ attribute , Yii :: tr ( 'This field must be well-formed JSON.' , [ ] , 'setting' ) ) ; } }
Json validates.

@param string $attribute the attribute currently being validated
Json validates .