def open_json(spark, json_path):
    """Opens a json file as a pandas DataFrame.

    Parameters
    ----------
    spark
      Spark session.
    json_path
      a HDFS file path and file name ending in .json

    Returns
    -------
    Pandas DataFrame
    """
    sdf = spark.read.json(
        json_path,
        encoding='ISO-8859-1',
        multiLine = True,
    )
    
    df = sdf.toPandas()

    return df