mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 23:28:13 +02:00
add documentation for from-json, from-yaml, history, split-row
This commit is contained in:
33
docs/commands/from-json.md
Normal file
33
docs/commands/from-json.md
Normal file
@ -0,0 +1,33 @@
|
||||
# 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
|
||||
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━
|
||||
```
|
Reference in New Issue
Block a user