From 481722b80ac5131e75b91089abbae88443ac7d8a Mon Sep 17 00:00:00 2001 From: Patrick Meredith Date: Fri, 30 Aug 2019 17:34:35 -0400 Subject: [PATCH] Fix from_json to use Nothing --- src/commands/from_json.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/from_json.rs b/src/commands/from_json.rs index ab4241f21..52ec333f3 100644 --- a/src/commands/from_json.rs +++ b/src/commands/from_json.rs @@ -32,9 +32,7 @@ fn convert_json_value_to_nu_value(v: &serde_hjson::Value, tag: impl Into) - let tag = tag.into(); match v { - serde_hjson::Value::Null => { - Value::Primitive(Primitive::String(String::from(""))).tagged(tag) - } + serde_hjson::Value::Null => Value::Primitive(Primitive::Nothing).tagged(tag), serde_hjson::Value::Bool(b) => Value::Primitive(Primitive::Boolean(*b)).tagged(tag), serde_hjson::Value::F64(n) => { Value::Primitive(Primitive::Float(OF64::from(*n))).tagged(tag)