whats wrong with this json file?

mbiederman's icon

hi all, trying to import a longish json file to a dict object, but i cant seem to manage. The structure basically looks like below.

unfortunately, i get an error saying it is expecting a ',' ']' or '{'
and as far as i can tell, there is a comma where it is asking for one.

any help would be greatly appreciated...thanks

[{
    "path": "path/to/file.wav",
    "point": [0.1921012957727331, 0.31052071375056994]
}, {
    "path": "path/to/file.wav",
    "point": [0.14419509969012376, 0.38984881528325716]
}]

mbiederman's icon

in case someone finds this in the future, the JSON file needed to have a name of a 'top level ' dictionary...like so:
{
    "points and paths" : [         {
            "path" : "/path/to/file",
            "point" : [ 0.192101, 0.310521 ]
        }
,         {
            "path" : "/path/to/file",
            "point" : [ 0.144195, 0.389849 ]
        }
}

unuftu's icon

Thank you 👍