Struct serialize::json::ParserUnstable [-]  [+] [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<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<char>> Iterator<JsonEvent> for Parser<T>

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

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