from json
for formats> from json {flags}
--objects, -o
: treat each line as a separate valueinput | output |
---|---|
string | any |
Converts json formatted string to table
>'{ "a": 1 }'|from json
╭───┬───╮
│a│1│
╰───┴───╯
Converts json formatted string to table
>'{ "a": 1, "b": [1, 2] }'|from json
╭───┬───────────╮
│a│1│
││╭───┬───╮│
│b││0│1││
│││1│2││
││╰───┴───╯│
╰───┴───────────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/from_json.html