aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/seld/json_lint/json_parser.rs
blob: 0c51d9958d628bfb4b3ebfc40d7df1b71e595f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use shirabe_php_shim::PhpMixed;

#[derive(Debug)]
pub struct JsonParser;

impl Default for JsonParser {
    fn default() -> Self {
        Self::new()
    }
}

impl JsonParser {
    pub const DETECT_KEY_CONFLICTS: u32 = 1;

    pub fn new() -> Self {
        todo!()
    }

    pub fn parse(&self, _json: &str, _flags: u32) -> anyhow::Result<PhpMixed> {
        todo!()
    }

    /// PHP: JsonParser::lint() — returns null on success, ParsingException on failure.
    pub fn lint(&mut self, _json: &str) -> Option<crate::seld::json_lint::ParsingException> {
        todo!()
    }
}