mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 17:38:14 +02:00
Pass metadata in 'to json' (#2359)
This commit is contained in:
parent
b1a946f0dc
commit
8d269f62dd
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user