nushell/crates/nu-std/std
Antoine Stevan 4b9ec03110
add to ndjson and to jsonl to the standard library (#10519)
follow up to
- #10283

# Description
even though it appears defining `to foo` does not allow to do `save
x.foo` for free (see https://github.com/nushell/nushell/issues/10429),
because #10283 did add `from ndjson` and `from jsonl` to the standard
library, i thought adding their `to ...` counterpart would make sense
😋

# User-Facing Changes
users can now convert structured data back to NDJSON and JSONL 👌

# Tests + Formatting
this PR adds the exact same tests as for the `from ...` commands
- structured data is in `result` and the string is now the expected
- the two invalid `from ...` tests cannot be reproduced for `to ...`
afaik

# After Submitting
2023-10-02 11:50:07 +02:00
..
assert.nu improve assertion error messages in std assert (#10551) 2023-10-01 16:40:24 +02:00
dirs.nu remove let-env, focus on mutating $env (#9574) 2023-07-01 07:57:51 +12:00
dt.nu std dt datetime-diff: fix uninitialized field ref when borrowing (#10466) 2023-09-24 10:53:56 +02:00
formats.nu add to ndjson and to jsonl to the standard library (#10519) 2023-10-02 11:50:07 +02:00
help.nu differentiating between --x and --x: bool (#10456) 2023-09-23 10:20:48 +02:00
input.nu Command to get individual keys (#9453) 2023-07-03 10:23:44 -05:00
iter.nu Add zip-into-record to std iter (#9395) 2023-06-10 20:15:30 +02:00
log.nu change LOG_FORMAT to NU_LOG_FORMAT in nu-std library (#10254) 2023-09-06 10:17:14 -07:00
math.nu move math constants to standard library (#9678) 2023-09-05 19:32:31 +02:00
mod.nu fix public boolean switches in the standard library (#10477) 2023-09-23 06:40:28 -05:00
testing.nu stdlib: Reduce test file parsing overhead (#10545) 2023-10-01 15:37:51 +02:00
xml.nu Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00