I have a json file which looks like this:
easy.txt
{"top":[[1],[2,2],[2,2,3],[7,2],[2,3],[2,3],[2,2,3],[7,2],[2,2,3],[2]],"left":[[1,1],[3,3],[3,3],[1,1],[3,4],[3,4],[1,1],[3,3,2],[9],[7]],"task":[[0,0,0,1,0,0,0,1,0,0],[0,0,1,1,1,0,1,1,1,0],[0,0,1,1,1,0,1,1,1,0],[0,0,0,1,0,0,0,1,0,0],[0,1,1,1,0,1,1,1,1,0],[0,1,1,1,0,1,1,1,1,0],[0,0,0,1,0,0,0,1,0,0],[1,1,1,0,1,1,1,0,1,1],[0,1,1,1,1,1,1,1,1,1],[0,0,1,1,1,1,1,1,1,0]]}
What I want to do is to load these 3 arrays into 3 different var. I'm making a griddler game, and the user could choose between different tasks. After choosing a task (lets say the user chooses the easy task, so the url looks something like: .../game.php?select=easy, and javascript loads the easy.json file) the selected json file would load and my javascript would draw the gamingfield.
If something is not clear please ask and I'll answer it.