kyrie
    Preparing search index...

    Function parse_string

    • Parses a JavaScript or JSON value string into an Abstract Syntax Tree

      Parameters

      • input: unknown

        The string to parse (should be a string)

      Returns ASTNode

      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