public function convertJsonToArray($value) {

		if(true === $this -> convert_json) {

			if(true === is_string($value)) {

				$tmp = @json_decode($value, true);

				if(true === (json_last_error() == JSON_ERROR_NONE)) {
					$value = $tmp;
				}
			}
		}

		return $value;
	}
public function convertJsonToArray($value) {

		if(true === $this -> convert_json) {

			if(true === is_string($value)) {

				$tmp = @json_decode($value, true);

				if(true === (json_last_error() == JSON_ERROR_NONE)) {
					$value = $tmp;
				}
			}
		}

		return $value;
	}
public function convertJsonToArray ( $ value ) { if ( true === $ this -> convert_json ) { if ( true === is_string ( $ value ) ) { $ tmp = @ json_decode ( $ value , true ) ; if ( true === ( json_last_error ( ) == JSON_ERROR_NONE ) ) { $ value = $ tmp ; } } } return $ value ; }
Tries covnert values to JSON strings. Otherwise, returns the given value
@param string $value
@return mixed
Tries covnert values to JSON strings . Otherwise returns the given value