2020-05-04 23:01:31 +02:00
|
|
|
# from json
|
2019-11-28 19:33:17 +01:00
|
|
|
|
|
|
|
Parse text as `.json` and create table. Use this when nushell cannot dertermine the input file extension.
|
|
|
|
|
2020-05-04 23:01:31 +02:00
|
|
|
Syntax: `from json {flags}`
|
2019-11-28 19:33:17 +01:00
|
|
|
|
|
|
|
### Flags:
|
|
|
|
|
|
|
|
--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
|
|
|
───────────┼─────────┼───────
|
2020-05-04 23:01:31 +02:00
|
|
|
from json │ command │ Yes
|
2019-11-28 19:33:17 +01:00
|
|
|
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━
|
2020-05-04 23:01:31 +02:00
|
|
|
```
|