input: def fetch_data_from_sql_as_json() -> None:
      """Develop an API in Python that fetches data from an SQL database and presents the data in the form of a JSON.
      >>> fetch_data_from_sql_as_json()
      >>> # Running this function will set up a Flask app that, when accessed via a GET request at '/',
      >>> # fetches all users from the 'users' table in 'database.db' and returns them as a JSON.
      """
output:     
      from flask import Flask, jsonify
      import sqlite3
  
      app = Flask(__name__)
  
      def get_db_connection():
          conn = sqlite3.connect('database.db')
          conn.row_factory = sqlite3.Row
          return conn
  
      @app.route('/')
      def fetch_users():
          conn = get_db_connection()
          users = conn.execute('SELECT * FROM users').fetchall()
          conn.close()
          return jsonify([dict(user) for user in users])
  
      if __name__ == '__main__':
          app.run(debug=True)
  