mirror of
https://github.com/nushell/nushell
synced 2024-11-14 08:57:08 +00:00
739 B
739 B
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
> open command_from-json
[
{
title: "from-json",
type: "command",
flags: true
}
]
> open command_from-json | from-json
━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━
title │ type │ flags
───────────┼─────────┼───────
from-json │ command │ Yes
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━