aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/seld/json_lint/json_parser.rs
blob: dbff9a09e787f27c21180208b7df27f8fe46fccf (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
28
29
30
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::parsing_exception::ParsingException> {
        todo!()
    }
}