Skip to main content

from_json

Function from_json 

Source
pub fn from_json(text: &[u8]) -> Result<Vec<u8>>
Expand description

One JSON document, as the bytes it encodes to.

A caller with more than one document to read should keep a Builder and call Builder::json on it instead, since that is the whole reason a builder can be cleared and reused.