Skip to main content

parse_first

Function parse_first 

Source
pub fn parse_first(raw: &[u8]) -> Result<Node, DecodeError>
Expand description

json.NewDecoder(r).Decode over a complete reader: the first value only, with anything after it left unread; a truncated value is unexpected EOF and input without any value EOF.