I am loading data from a JSON file as list and then making a NumPy array.
The JSON file is structured as follows
{
"label": "4",
"mfcc": [
[
[
-147.2358550730904,
52.60503152410914,
<more values Total=13>
],
<more arrays Total=44>
The code I am using to make a NumPy array using data collected from the JSON file
with open("data.json", 'r') as file:
data = json.load(file)
mfcc = np.array(data["mfcc"])
It seems that the most outer list gets converted to a NumPy array while the inner lists are still lists. See the image below:
What has happened?
Thanks in advance!

np.array(alist)will give a nice multdimensional array only if the nesting in the list is regular (as shown innumpy.arraydocs. So just saying that the file is JSON doesn't help us help you.data["mfcc"]does look like a list, but it may not be regular enough to turn into a multidimensional array.