PartialJsonParser

Trait PartialJsonParser 

Source
pub trait PartialJsonParser: Send + Sync {
    // Required methods
    fn parse(&self, input: &str) -> ParserResult<(Value, usize)>;
    fn is_complete(&self, input: &str) -> bool;
    fn max_depth(&self) -> usize;
}
Expand description

Trait for partial JSON parsing

Required Methods§

Source

fn parse(&self, input: &str) -> ParserResult<(Value, usize)>

Parse potentially incomplete JSON

Source

fn is_complete(&self, input: &str) -> bool

Check if JSON is complete

Source

fn max_depth(&self) -> usize

Get the maximum parsing depth

Implementors§