Json declaration problem

Hi, I’m upgrading a game from cocos creator 1.9 to 2.3, and I have a problem with json files, Im trying to read a json file, but I can’t, all I get is errors, can someone help me? thanks.

I tried many things

but, it keeps failing…

The path needs to get rid of the ‘resources/’, just the relative path,for example:


it worked, thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.