Hello everyone, i need your help.
I try to load json file from cocos, I try this code
cc.loader.loadJson("asset/GamePlay.json", function(err, json){
cc.log("loading json file..");
cc.log(json);
console.dir(json);
});
But it give me an error
Uncaught parse json [asset/GamePlay.json] failed : SyntaxError: Unexpected token /
The resource path is right, whats the problem?
Thank you…
