original_string: public function fillJsonAttribute($key, $value)
      {
          [$key, $path] = explode('->', $key, 2);
  
          $this->attributes[$key] = $this->asJson($this->getArrayAttributeWithValue(
              $path, $key, $value
          ));
  
          return $this;
      }
code: public function fillJsonAttribute($key, $value)
      {
          [$key, $path] = explode('->', $key, 2);
  
          $this->attributes[$key] = $this->asJson($this->getArrayAttributeWithValue(
              $path, $key, $value
          ));
  
          return $this;
      }
code_tokens: public function fillJsonAttribute ( $ key , $ value ) { [ $ key , $ path ] = explode ( '->' , $ key , 2 ) ; $ this -> attributes [ $ key ] = $ this -> asJson ( $ this -> getArrayAttributeWithValue ( $ path , $ key , $ value ) ) ; return $ this ; }
docstring: Set a given JSON attribute on the model.
  
  @param  string  $key
  @param  mixed  $value
  @return $this
docstring_tokens: Set a given JSON attribute on the model .