mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 07:40:19 +02:00
add in a raw flag in the command to json (#555)
* add in the method to_string_raw * add in a raw flag to json * add in a test
This commit is contained in:
@@ -1324,3 +1324,11 @@ fn cjk_in_substrings() -> TestResult {
|
||||
"title-page.md",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn to_json_raw_flag() -> TestResult {
|
||||
run_test(
|
||||
"[[a b]; [jim susie] [3 4]] | to json -r",
|
||||
r#"[{"a":"jim","b":"susie"},{"a":3,"b":4}]"#,
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user