input: 
  def fetch_data_as_json(database_path: str) -> str:
      """Given a path to an SQL database, this function connects to the database, 
      executes a query to fetch all records from the 'users' table, and returns 
      the results as a JSON string.
      >>> fetch_data_as_json('database.db')
      '[{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]'
      """
      import json
      import sqlite3
  
      connection = sqlite3.connect(database_path)
      def dict_factory(cursor, row):
          d = {}
          for idx, col in enumerate(cursor.description):
              d[col[0]] = row[idx]
          return d
      connection.row_factory = dict_factory
      cur = connection.cursor()
      all_users = cur.execute('SELECT * FROM users;').fetchall()
      connection.close()
      return json.dumps(all_users)
  
output:     import json
      import sqlite3
  
      connection = sqlite3.connect(database_path)
      def dict_factory(cursor, row):
          d = {}
          for idx, col in enumerate(cursor.description):
              d[col[0]] = row[idx]
          return d
      connection.row_factory = dict_factory
      cur = connection.cursor()
      all_users = cur.execute('SELECT * FROM users;').fetchall()
      connection.close()
      return json.dumps(all_users)