Struct jsonc_parser::ParseResult
source · [−]pub struct ParseResult<'a> {
pub comments: Option<CommentMap<'a>>,
pub value: Option<Value<'a>>,
pub tokens: Option<Vec<TokenAndRange<'a>>>,
}Expand description
Result of parsing the text.
Fields
comments: Option<CommentMap<'a>>Collection of comments in the text.
Provide comments: true to the ParseOptions for this to have a value.
Remarks: The key is the start and end position of the tokens.
value: Option<Value<'a>>The JSON value the text contained.
tokens: Option<Vec<TokenAndRange<'a>>>Collection of tokens (excluding any comments).
Provide tokens: true to the ParseOptions for this to have a value.