public function format_json($field)
    {
        if (!is_scalar($this->current_row[$field])) {
            $this->current_row[$field] = json_encode($this->current_row[$field]);
        }
    }
public function format_json($field)
    {
        if (!is_scalar($this->current_row[$field])) {
            $this->current_row[$field] = json_encode($this->current_row[$field]);
        }
    }
public function format_json ( $ field ) { if ( ! is_scalar ( $ this -> current_row [ $ field ] ) ) { $ this -> current_row [ $ field ] = json_encode ( $ this -> current_row [ $ field ] ) ; } }
Format field by json encoding it.

@param string $field
Format field by json encoding it .