> For the complete documentation index, see [llms.txt](https://docs.myshell.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myshell.ai/create/pro-config-mode/api-reference/widgets/33-json-to-table.md).

# JSON to Table

## Try it in the Widget Center

Click this [url](https://app.myshell.ai/robot-workshop/widget/1782389478800306176) to try this widget and copy the Pro Config template.

## Usage

This widget converts a JSON string to a table file (.csv, .tsv, .xlsx)

**Input Parameters**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>json_string</td><td><code>string</code></td><td>Provide your input json.</td><td>[{"name": "Harry", "age": 18}, {"name": "Ginny", "age": 17}]</td><td>true</td></tr><tr><td>format_to</td><td><code>string</code></td><td>The output format of the table.</td><td>csv</td><td>true</td></tr></tbody></table>

**Output Parameters**

| Name      | Type     | Description               | File Type |
| --------- | -------- | ------------------------- | --------- |
| file\_url | `string` | The converted file in url | table     |

**Output Example**

{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}

```json
{
  "file_url": "https://object-storage-16oh.lepton.ai/ws-k8d7q1rw/doc_converter/output/26fa399729d34f63a8126bd6ac9db0cc/tmpklk0rf8l.xlsx"
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

## Detailed Guidelines
