Struct rustc-serialize::json::Parser [-]  [+] [src]

pub struct Parser<T> {
    // some fields omitted
}

A streaming JSON parser implemented as an iterator of JsonEvent, consuming an iterator of char.

Methods

impl<T: Iterator<Item=char>> Parser<T>

fn new(rdr: T) -> Parser<T>

Creates the JSON parser.

fn stack<'l>(&'l self) -> &'l Stack

Provides access to the current position in the logical structure of the JSON stream.

Trait Implementations

impl<T: Iterator<Item=char>> Iterator for Parser<T>

type Item = JsonEvent

fn next(&mut self) -> Option<JsonEvent>

fn size_hint(&self) -> (usize, Option<usize>)