You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The comments option to parse() and tokenize() has been removed and replaced with the mode option, which can be either "json" for JSON parsing or "jsonc" to parse JSON with C-style comments.
The type property on tokens has been expanded: "Punctuator" has been removed and replaced with specific token types for each of the former punctuator characters, "LBrace", "RBrace", "LBracket", "RBracket", "Comma", and "Colon"
The value property has been removed from tokens in order to improve performance. You can easily retrieve the value of any token via text.slice(token.loc.start.offset, token.loc.end.offset) or text.slice(token.range[0], token.range[1]) (if ranges: true is used).
A new Element node as been introduced to be the parent node of each array element (similar to Member in Object.members). This allows you to easily look up the AST to determine if a value is inside of an array or not.