input: def fetch_data_as_json():
      """
      Develops an API in Python that fetches data from an SQL database and presents the data in the form of a JSON.
  
      >>> fetch_data_as_json()
      '{"id": 1, "name": "John Doe", "email": "john.doe@example.com"}, {"id": 2, "name": "Jane Doe", "email": "jane.doe@example.com"}'
      """
output:     
      import sqlite3
      import json
  
      conn = sqlite3.connect('example.db')
      cursor = conn.cursor()
  
      cursor.execute("SELECT id, name, email FROM users")
      rows = cursor.fetchall()
  
      data = [{"id": row[0], "name": row[1], "email": row[2]} for row in rows]
  
      conn.close()
  
      return json.dumps(data)
  