mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 01:19:25 +01:00
24 lines
310 B
Markdown
24 lines
310 B
Markdown
|
---
|
||
|
title: to json
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
Converts table data into JSON text.
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> to json --raw```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `--raw`: remove all of the whitespace
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Outputs an unformatted JSON string representing the contents of this table
|
||
|
```shell
|
||
|
> [1 2 3] | to json
|
||
|
```
|
||
|
|