diff --git a/crates/nu-command/src/formats/to/json.rs b/crates/nu-command/src/formats/to/json.rs index 0ba5427038..7eb749977f 100644 --- a/crates/nu-command/src/formats/to/json.rs +++ b/crates/nu-command/src/formats/to/json.rs @@ -12,7 +12,11 @@ impl Command for ToJson { fn signature(&self) -> Signature { Signature::build("to json") .input_output_types(vec![(Type::Any, Type::String)]) - .switch("raw", "remove all of the whitespace", Some('r')) + .switch( + "raw", + "remove all of the whitespace and trailing line ending", + Some('r'), + ) .named( "indent", SyntaxShape::Number,