Example 7-1
Example 7-1 worked straight in the download as one might expect. I like to put them in my IDE and hand type at least part of the code, as it serves the same function as practising the piano just making the syntax automatic.
Well I had a hell of a time with the second button, the one that invokes the getJSON function. I put the question on stackoverflow, and the answer that solved the problem was to put double quotes around both keys and values in the json file. The original file had no quotes around the keys and single quotes around the values and I know of no tool that would help me identify that as the source of the problem.
So what I want to know is why does the example (which according to them is WRONG) work as it comes, and what did I do to it to make it break, requiring stricter adherence to standards?
|