Parses a JavaScript or JSON value into an Abstract Syntax Tree
The value to parse
The AST representation of the parsed value
const obj = {name: "John", age: 30};const ast = parse_value(obj);console.log(ast.basic_type); // "object"console.log(ast.properties.name.value); // "John" Copy
const obj = {name: "John", age: 30};const ast = parse_value(obj);console.log(ast.basic_type); // "object"console.log(ast.properties.name.value); // "John"
Parses a JavaScript or JSON value into an Abstract Syntax Tree