loglens-core 0.1.1

A lightning-fast, structured log parsing and query engine (JSON/Logfmt). Powers the LogLens CLI.
Documentation
1
2
3
4
5
6
7
8
// src/parsers/json.rs

use serde_json::{Result, Value};

/// Attempts to parse a single line as a JSON object.
pub fn parse_json_line(line: &str) -> Result<Value> {
    serde_json::from_str(line)
}