I have converted my .xml code to .json
For xml I am using something like this:
var stage = xml.getElementsByTagName("stage" + game.current_stage)[0];
How can you do that in json?
I want something like this:
var stage = json."stage"+ game.current_stage;
You can still use the zero index for the JSON, and the correct syntax is: