Dict- "cannot read dictionary: -1"

Eplusmusic's icon

Eplusmusic

7月 06 2012 | 4:47 午後

Okay, I'm going a little crazy. I'm sure this is a super simple answer, but I can't figure it out right now.
I'm looking at dict. And I'm basically trying to write a text file, and reference it in the object.

So - [dict text.txt]

When I save the text that i have put inside the file as text.txt and put it in the same folder as the max patch, upon double clicking on the [dict] object, there is no info inside, It has not loaded.
I tried using the import method, clicking on the text file and trying to load it, but I get "cannot read dictionary: -1" in the max window.

Any clues how to get this to work?

Thanks.
Eplus

Ben Bracken's icon

Ben Bracken

7月 06 2012 | 7:02 午後

Check out the 'Files' tab in the dict help file. Basically, you need to use a .json file (or .yml).

-Ben

EraserHead's icon

EraserHead

4月 02 2024 | 7:43 午後

data_batch1SHORT.JSON
JSON

Hi, for the first time after few projects working flawlessly with .json files I'm getting continuously the error "dict: cannot read dictionary: -1" while loading the file in the dict object.

I checked the parsing of the .json file and it passes the validator, however, I keep getting the error.

I triple checked the extension of the file, it is indeed .json and formatted as such.

I'm sure it is a silly problem, but what am i doing wrong?

I uploaded a short version of the file as a reference.

Thanks