Let’s say there is a JSON file lying in ./resources and named “String.json”. Then the parsing of this file can be implemented as follows:
Label Start: $ Import json $ F = Open (Renpy.Loader.transFN ("Resources / String.json")) $ text = json.load (f)
Perhaps it is somehow connected with the architecture of APK-package, or some other nuances, but in the documentation I did not find solutions to this problem.
To resolve the exception, you can use the renpy.file
Label Start: $ Import json $ F = Renpy.file ("Resources / String.json") $ text = json.load (f)