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