From 8d269f62ddfd58a9d862c86006103a6185e9bfbf Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sun, 16 Aug 2020 15:47:00 +1200 Subject: [PATCH] Pass metadata in 'to json' (#2359) --- crates/nu-cli/src/commands/to_json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cli/src/commands/to_json.rs b/crates/nu-cli/src/commands/to_json.rs index be2373ab4..702feda3f 100644 --- a/crates/nu-cli/src/commands/to_json.rs +++ b/crates/nu-cli/src/commands/to_json.rs @@ -240,7 +240,7 @@ async fn to_json( ReturnSuccess::value( UntaggedValue::Primitive(Primitive::String(serde_json_string)) - .into_value(&name_tag), + .into_value(&value.tag), ) } _ => Err(ShellError::labeled_error_with_secondary(