The link to your json file didn't work, so I couldn't look it over.
But incorrectly formatted json will result in a failure in getJSON()
call and your callback would never be executed. Your json has to be
perfect, so look it over very carefully.

Here's a couple of common gotchas:

[
        {
                "date": "1-Jun",
                "time": "2:00 PM",
        },
        {
                "date": "3-Jun",
                "time": "2:00 PM",
        },
]

1) Note that the "time" field on both records has a comma at the end.
This is incorrect, the last field should have no comma at the end.

2) Same thing on the last record, there is a comma following the
ending curly bracket. No comma should come after the last record.

This file should fail if you try it, but will succeed when removing
these commas. There are other formatting errors not quite as common.
Basically, json files have to be perfect. A lot of people have json
generators to ensure they will be correct.

hth!

Reply via email to