mirror of
https://github.com/duhanbalci/dexpr.git
synced 2026-08-30 16:01:41 +00:00
0.3.0
This commit is contained in:
@@ -37,6 +37,9 @@ fn value_to_json(val: &Value) -> serde_json::Value {
|
||||
.collect();
|
||||
serde_json::Value::Object(obj)
|
||||
}
|
||||
Value::List(list) => {
|
||||
serde_json::Value::Array(list.iter().map(|v| value_to_json(v)).collect())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user