[][src]Function sj::parse

pub fn parse<R>(src: &mut R) -> Result<Value> where
    R: Read

Parses a stream

Notes

  • The stream is used as-is. For better performance, you should wrap your stream inside a BufRead.
  • You can also use implementation of TryFrom<Vec<u8>> for Value.
  • On machines whose pointer width is one of 8/16/32/64, numbers will be parsed by either i64/u64/f64. On other machines, numbers will be parsed by isize/usize/f64. So, even though you can convert i128/u128 into Number and format them into JSON string, but: parsing i128/u128 is not supported on some machines.