Struct serde_json::de::Deserializer
[−]
[src]
pub struct Deserializer<Iter: Iterator<Item=Result<u8>>> {
// some fields omitted
}A structure that deserializes JSON into Rust values.
Methods
impl<Iter> Deserializer<Iter> where Iter: Iterator<Item=Result<u8>>
fn new(rdr: Iter) -> Deserializer<Iter>[−]
Creates the JSON parser from an std::iter::Iterator.
fn end(&mut self) -> Result<()>[−]
The Deserializer::end method should be called after a value has been fully deserialized.
This allows the Deserializer to validate that the input stream is at the end or that it
only has trailing whitespace.