es4forensics 0.5.1

Import several timelines into elasticsearch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde_json::Value;

pub fn add_to_json(value: &Value, ident: &str, s: Value) -> Value {
    match value {
        Value::Object(m) => {
            let mut m = m.clone();
            m.insert(ident.to_string(), s);
            Value::Object(m)
        }
        v => v.clone(),
    }
}