Skip to content

“jq vs Nushell » Formatting output” documentation bug #2163

@LeoniePhiline

Description

@LeoniePhiline

Section

### Formatting output
lists the following nu snippet as involved but equivalent:

'{"name": "Alice", "age": 30}'
| from json
| items { |key, value| ["Name" $value] | str join ": " }
| str join ", "
# => Name: Alice, Name: 30

For equivalence, Name: 30 should be Age: 30.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions