'Reading JSON file from azure Container to Data Bricks as Dictionary

I have a prefect JSON file in Azure container as the file is created using python dictionary, I can see the file with the help of dbutils and even read it by head but head can't read the whole file.

Using spark.read.json(file_path) reads JSON formated file as dataframe and throws error courrpt corrupt.

How i can get this file as Dictionary in Databricks ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source