mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
5ca9e12b7f
* Remove EOL whitespace in files other than docs * Break paragraphs into lines See http://rhodesmill.org/brandon/2012/one-sentence-per-line/ for the rationale * Fix various typos * Remove EOL whitespace in docs/commands/*.md
33 lines
No EOL
737 B
Markdown
33 lines
No EOL
737 B
Markdown
# from-json
|
|
|
|
Parse text as `.json` and create table. Use this when nushell cannot dertermine the input file extension.
|
|
|
|
Syntax: `from-json {flags}`
|
|
|
|
### Flags:
|
|
|
|
--objects
|
|
treat each line as a separate value
|
|
|
|
|
|
## Examples
|
|
|
|
```shell
|
|
> open command_from-json
|
|
[
|
|
{
|
|
title: "from-json",
|
|
type: "command",
|
|
flags: true
|
|
}
|
|
]
|
|
```
|
|
|
|
```shell
|
|
> open command_from-json | from-json
|
|
━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━
|
|
title │ type │ flags
|
|
───────────┼─────────┼───────
|
|
from-json │ command │ Yes
|
|
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━
|
|
``` |