Pass metadata in 'to json' (#2359)

This commit is contained in:
Jonathan Turner 2020-08-16 15:47:00 +12:00 committed by GitHub
parent b1a946f0dc
commit 8d269f62dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(