to json -r not removing whitespaces fix (#11948)

fixes #11900  

# Description
Use `serde_json` instead.

# User-Facing Changes
The problem described in the issue now no longer persists.

No whitespace in the output of `to json --raw`
Output of unicode escape changed to consistent `\uffff`

# Tests + Formatting
I corrected all Tests that were affected by this change.
This commit is contained in:
dannou812
2024-03-20 22:14:31 +01:00
committed by GitHub
parent fdf7f28d07
commit 8237d15683
13 changed files with 45 additions and 34 deletions

View File

@ -607,7 +607,7 @@ fn index_row() {
let foo = [[name]; [joe] [bob]]; echo $foo.1 | to json --raw
");
assert_eq!(actual.out, r#"{"name": "bob"}"#);
assert_eq!(actual.out, r#"{"name":"bob"}"#);
}
#[test]