Hi Issac Chan
The approach on using AzureMachineLearningFileSystem will need the datastore path which can be copied from "Browse Option"/Copy URL(select the azureml:/ one). Post that we can use "./" method to load the json file
from azureml.fsspec import AzureMachineLearningFileSystem
# instantiate file system using following URI
fs = AzureMachineLearningFileSystem('azureml://subscriptions/<subid>/resourcegroups/<rgname>/workspaces/<workspace_name>/datastore*s*/datastorename')
fs.ls() # list folders/files in datastore 'datastorename'
# output example:
# folder1
# folder2
# file3.csv
# use an open context
with fs.open('./folder1/file1.json') as f: # do some process
process_file(f)
You can also use pd.read_json to read json files
import pandas as pd
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential
ml_client = MLClient.from_config(credential=DefaultAzureCredential())
data_asset = ml_client.data.get("testdatasetjson", version="1")
df = pd.read_json(data_asset.path)
df
Reference used -
Thank you.