2019-11-28 18:33:17 +00:00
|
|
|
# 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
|
|
|
|
━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
title │ type │ flags
|
2019-11-28 18:33:17 +00:00
|
|
|
───────────┼─────────┼───────
|
2020-03-13 17:23:41 +00:00
|
|
|
from-json │ command │ Yes
|
2019-11-28 18:33:17 +00:00
|
|
|
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━
|
|
|
|
```
|