original_string: public function format_json($field)
      {
          if (!is_scalar($this->current_row[$field])) {
              $this->current_row[$field] = json_encode($this->current_row[$field]);
          }
      }
code: public function format_json($field)
      {
          if (!is_scalar($this->current_row[$field])) {
              $this->current_row[$field] = json_encode($this->current_row[$field]);
          }
      }
code_tokens: public function format_json ( $ field ) { if ( ! is_scalar ( $ this -> current_row [ $ field ] ) ) { $ this -> current_row [ $ field ] = json_encode ( $ this -> current_row [ $ field ] ) ; } }
docstring: Format field by json encoding it.
  
  @param string $field
docstring_tokens: Format field by json encoding it .