# File preview for a JSON output file

For a dataset that generates JSON output, the file preview displays the original file content.

## Text files

For a text file, you can switch between Markdown and the JSON output.

<figure><img src="/files/du74tykKd7KpO935H1oX" alt=""><figcaption><p>File preview for a text file in a JSON output dataset</p></figcaption></figure>

## CSV and RTF files

For CSV and RTF files, you can display either Markdown, HTML, or JSON output.

<figure><img src="/files/uLaD0fgiCPdwGCg0Vukj" alt=""><figcaption><p>File preview for a CSV file in JSON output dataset</p></figcaption></figure>

## PDF and image files

For a PDF or file, you can always display Markdown, HTML output, or JSON output.

If the file contains tables, then the **Tables** option displays, to allow you to view the tables specifically.

If the file contains key-value pairs, then the **Key-Values** option displays, to allow you to view the key-value pairs specifically.

<figure><img src="/files/gKgK0aVXpfmyVgywY4aE" alt=""><figcaption><p>File preview for a PDF file in a JSON output dataset</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/textual/datasets-preview-output/dataset-file-preview/file-preview-json-output.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
