elastic / elastic/docs-content

Switch the Discover table between Table and JSON view

Open
#8,135 1 comment 0 reactions 1 assignee Claimed by @florent-leborgne View on GitHub
Feature: Discover Team:SKI
Dominant language
No language data
Stars
47
Forks
261
Avg merge
3d 21h
Merged PRs (30d)
141

Description

## Summary

Discover adds a View mode control that switches the documents table between Table and JSON. JSON mode can hide nulls and wrap long lines. The control is behind `discover.dataTableJsonView` and is off by default. Customize the Discover view already documents Display options such as density, row height, and sample size. It does not mention View mode.

**Why this needs docs:** This is new table UI, but the View mode control is hidden until the feature flag is on.

## Resources

- PR [#285912](https://github.com/elastic/kibana/pull/285912) — [Discover][Table] Add JSON view UI toggle
- Product issue: https://github.com/elastic/kibana/issues/281552

Screenshots from PR

![screenshot](https://github.com/user-attachments/assets/d5f618df-ab56-4227-bf48-c089c207c14d)
![screenshot](https://github.com/user-attachments/assets/3b36d3e3-c92f-41d9-9440-f5d1d2190ce7)
![screenshot](https://github.com/user-attachments/assets/30f5d9e6-0504-4c23-b43e-c1e876a68576)
![screenshot](https://github.com/user-attachments/assets/dce4588a-f990-442f-949c-dbab48e8ce99)

## Availability

| Channel | Details |
|---------|---------|
| **Stack** | v9.6.0 |
| **Serverless** | Aug 31–Sep 4 |
| **Feature flag** | None — active by default |

---
*Created with [Docs Quest Scanner](https://github.com/florent-leborgne/docs-quest-scanner) by @florent-leborgne*

## Suggested edits

[Customize the Discover view](https://www.elastic.co/docs/explore-analyze/discover/document-explorer) > Modify the document table
- **What the docs say:** Customize the appearance of the document table from Display options. The page covers density, row height, sample size, sorting, and rows per page.
- **What to add:** When `discover.dataTableJsonView` is on, add View mode with Table and JSON. Document Hide nulls and Wrap lines for JSON mode. Do not publish this as generally available while the flag is off. Applies from 9.6.0 and in serverless when the flag is enabled.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.