Parses a JavaScript or JSON value string into an Abstract Syntax Tree
The string to parse (should be a string)
The AST representation of the parsed value
const ast = parse_string('{"name": "John", "age": 30}');console.log(ast.basic_type); // "object"console.log(ast.deep_type.isArray); // false Copy
const ast = parse_string('{"name": "John", "age": 30}');console.log(ast.basic_type); // "object"console.log(ast.deep_type.isArray); // false
Parses a JavaScript or JSON value string into an Abstract Syntax Tree