# File preview for a JSON output file

For a dataset that generates JSON output:

* On the left is the original content. For files other than .txt files, you can toggle between generated Markdown and the rendered file.
* On the right are the results.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FmcQQP1gaoN9KavQ2kSTK%2FDatasetJSONFilePreview_Txt.png?alt=media&#x26;token=62f254e8-11b4-4a7a-945b-80c7d8e55cec" alt=""><figcaption><p>File preview for a text file in a JSON output dataset</p></figcaption></figure>

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FtpcyaacGZjNST2z0oE2y%2FDatasetJSONFilePreview_PDF.png?alt=media&#x26;token=f3c33ec3-9f92-4502-8b41-ce6ecd2e7cad" alt=""><figcaption><p>File preview for a PDF file in a JSON output dataset</p></figcaption></figure>

## **Viewing the output JSON for the file** <a href="#file-preview-json-json" id="file-preview-json-json"></a>

The **JSON** view contains the content of the JSON output file.

For details about the JSON output structure for the different types of files, go to [dataset-output-json-structure](https://docs.tonic.ai/textual/datasets-preview-output/dataset-output-json-structure "mention").

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Fd8dpEYyvVBfTGsMFHOuI%2FDatasetJSONFilePreview_JSONTab.png?alt=media&#x26;token=0a9a1b00-8414-4cba-9d17-03d0dfe2c738" alt=""><figcaption><p>JSON view on a file preview for a JSON output dataset</p></figcaption></figure>

## Tables view - Tables in a PDF or image file <a href="#file-preview-json-tables" id="file-preview-json-tables"></a>

For a PDF or image file that contains one or more tables, the **Tables** view displays the tables.

To display **Tables** view, select it from the view dropdown list.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FHGQWfMziU9sy3XjhCqPM%2FDatasetJSONFilePreviewViewMenu.png?alt=media&#x26;token=ce055f47-2481-49ba-ac20-74a9d50ea85e" alt=""><figcaption><p>View selection menu</p></figcaption></figure>

If the file does not contain any tables, then the **Tables** view option is not available.

## Key-Values view - Key-value pairs in a PDF or image file <a href="#file-preview-json-key-value" id="file-preview-json-key-value"></a>

For a PDF or image file that contains key-value pairs, the **Key-Values** view displays the key-value pairs.

To display **Key-Values** view, select it from the view dropdown list.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FHGQWfMziU9sy3XjhCqPM%2FDatasetJSONFilePreviewViewMenu.png?alt=media&#x26;token=ce055f47-2481-49ba-ac20-74a9d50ea85e" alt=""><figcaption><p>View selection menu</p></figcaption></figure>

If the file does not contain key-value pairs, then the **Key-Values** view option is not available.
