Transparent Nulls
This commit is contained in:
@@ -67,7 +67,9 @@ impl CliCmd for ItemCommand {
|
||||
.query(&state, path)
|
||||
.await
|
||||
.with_context(|| format!("while extracting field {name}"))?;
|
||||
if let Some(v) = v {
|
||||
if let Some(v) = v
|
||||
&& !matches!(v, PileValue::Null)
|
||||
{
|
||||
let j = v
|
||||
.to_json(&state)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user