2020-05-04 21:01:31 +00:00
|
|
|
# from json
|
2019-11-28 18:33:17 +00:00
|
|
|
|
2020-06-23 18:21:47 +00:00
|
|
|
Parse text as `.json` and create table. Use this when nushell cannot determine the input file extension.
|
2019-11-28 18:33:17 +00:00
|
|
|
|
2020-05-04 21:01:31 +00:00
|
|
|
Syntax: `from json {flags}`
|
2019-11-28 18:33:17 +00:00
|
|
|
|
2020-06-23 18:21:47 +00:00
|
|
|
## Flags
|
2019-11-28 18:33:17 +00:00
|
|
|
|
|
|
|
--objects
|
|
|
|
treat each line as a separate value
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> open command_from-json
|
|
|
|
[
|
|
|
|
{
|
2020-05-04 21:01:31 +00:00
|
|
|
title: "from json",
|
2019-11-28 18:33:17 +00:00
|
|
|
type: "command",
|
|
|
|
flags: true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2020-05-04 21:01:31 +00:00
|
|
|
> open command_from-json | from json
|
2019-11-28 18:33:17 +00:00
|
|
|
━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
title │ type │ flags
|
2019-11-28 18:33:17 +00:00
|
|
|
───────────┼─────────┼───────
|
2020-05-04 21:01:31 +00:00
|
|
|
from json │ command │ Yes
|
2019-11-28 18:33:17 +00:00
|
|
|
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━
|
2020-05-04 21:01:31 +00:00
|
|
|
```
|