input:                         from typing import List
  
  
  def fetch_sql_to_json(database_name: str) -> List[dict]:
      """ Fetches data from an SQL database and presents the data in the form of a JSON.
      >>> fetch_sql_to_json('database.db')
      [{'id': 1, 'name': 'John'}, {'id': 2, 'name': 'Jane'}]
      """
output:     import sqlite3
      import json
  
      conn = sqlite3.connect(database_name)
      cursor = conn.cursor()
      cursor.execute("SELECT * FROM users")
      rows = cursor.fetchall()
      columns = [description[0] for description in cursor.description]
      result = [dict(zip(columns, row)) for row in rows]
      conn.close()
      return result