mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 15:25:06 +02:00
Pass metadata in 'to json' (#2359)
This commit is contained in:
@ -240,7 +240,7 @@ async fn to_json(
|
|||||||
|
|
||||||
ReturnSuccess::value(
|
ReturnSuccess::value(
|
||||||
UntaggedValue::Primitive(Primitive::String(serde_json_string))
|
UntaggedValue::Primitive(Primitive::String(serde_json_string))
|
||||||
.into_value(&name_tag),
|
.into_value(&value.tag),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
_ => Err(ShellError::labeled_error_with_secondary(
|
_ => Err(ShellError::labeled_error_with_secondary(
|
||||||
|
Reference in New Issue
Block a user