Skip to main content

ailint_core/parser/
json.rs

1//! JSON parsing for guidance files that store rules as JSON.
2
3use anyhow::Result;
4
5/// Parse a JSON string into a generic `serde_json::Value`.
6pub fn parse(input: &str) -> Result<serde_json::Value> {
7    Ok(serde_json::from_str(input)?)
8}