pub fn parse<R>(src: &mut R, map_kind: MapKind) -> Result<Json>where
R: Read,Available on crate feature
std only.Expand description
§Parses a stream
§Notes
- The stream is used as-is.
- To prevent attacks, consider limiting your source via
Read::take(). - On machines whose pointer width is one of
8/16/32/64, numbers will be parsed by eitheri64/u64/f64. On other machines, numbers will be parsed byisize/usize/f64. So, even though you can converti128/u128intoNumberand format them into JSON string, but: parsingi128/u128is not supported on some machines.
About strings with escaping Unicode characters:
- JSON specification only supports this form
\u----(each-is a hexadecimal character). This function works on that form. - Some other programming languages have support for this form
\x--, which is not described in specification. This function can also work on that form, if you enable featurex-unicode.