nushell/docs/commands/from-json.md
Fernando Herrera dbcadbc12c moved folders
2022-02-07 19:23:12 +00:00

735 B

from json

Parse text as .json and create table. Use this when nushell cannot determine 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 │ commandtrue
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━