pub fn mapping_from_json(text: &str) -> Result<Mapping, LogError>Expand description
Reads a mapping file’s JSON.
§Errors
LogError::Mapping for text of more than MAX_FILE_BYTES, or JSON that isn’t a mapping:
a key missing or not the schema’s, or a value of the wrong kind, naming its path and line.