original_string: public function fromJson(string $json): array
      {
          if (!$this->isEmptyValue($json)) {
  
              if ($decode = json_decode(trim($json), true) and json_last_error() == JSON_ERROR_NONE)
                  $this->result = $decode;
              else
                  $this->setError(json_last_error(), json_last_error_msg());
          }
  
          return $this->result;
      }
code: public function fromJson(string $json): array
      {
          if (!$this->isEmptyValue($json)) {
  
              if ($decode = json_decode(trim($json), true) and json_last_error() == JSON_ERROR_NONE)
                  $this->result = $decode;
              else
                  $this->setError(json_last_error(), json_last_error_msg());
          }
  
          return $this->result;
      }
code_tokens: public function fromJson ( string $ json ) : array { if ( ! $ this -> isEmptyValue ( $ json ) ) { if ( $ decode = json_decode ( trim ( $ json ) , true ) and json_last_error ( ) == JSON_ERROR_NONE ) $ this -> result = $ decode ; else $ this -> setError ( json_last_error ( ) , json_last_error_msg ( ) ) ; } return $ this -> result ; }
docstring: Convert json to array
  
  @param string $json
  @return array|mixed
docstring_tokens: Convert json to array