A Dictionary from a JSON file

My app does nothing but read a JSON file in which I have edited my dictionary. See the attached json file.

MyDict.json (330 Bytes)

Selecting a language from a listpicker displays the four nouns in the selected language.

That's it.

However, it doesn't work; I still don't seem to understand how the dictionary works in MIT App Inventor 2.

I'm attaching the blocks and a screenshot of the app installed from the apk file on my phone with the failed operation.
initialize global json_Text to


when  File1 .GotText   text   do


Why isn't it working? Where am I going wrong?

Any advices will be appreciated!

Because this

never gets executed
Move these blocks into the File.GotText event

Taifun

1 Like

Ah, I'm not paying enough attention! Thank you very much!