ailint-core 1.0.1

Core library for ailint: discovery, parsing, rule engine, and reporters for AI agent guidance files.
Documentation
1
2
3
4
5
6
7
8
//! JSON parsing for guidance files that store rules as JSON.

use anyhow::Result;

/// Parse a JSON string into a generic `serde_json::Value`.
pub fn parse(input: &str) -> Result<serde_json::Value> {
    Ok(serde_json::from_str(input)?)
}