The JSON is perfectly well-formed:
{
"affiliate": [
{
"rank": 1,
"name": "Sally",
"march_rank": "Gold",
"april_rank": "Silver",
"may_rank": "Silver",
"highest_rank": "Silver",
"team_volume": 12345
},
{
"rank": 2,
"name": "Zelda",
"march_rank": "Gold",
"april_rank": "Bronze",
"may_rank": "Silver",
"highest_rank": "Gold",
"team_volume": 12345
}
]
}
The problem is, you're trying to iterate over the
entries
property, which doesn't exist:
$.each(data.entries, ...
You need to iterate over the
affiliate
property instead.
You'll need to remove the
?callback=?"
query-string, which is confusing jQuery.
You're also missing a couple of opening
<td>
s, and one column. And there's no
personal_volume
property in the JSON.
Demo[
^]