results.elections.virginia.gov: subloop-array, subloop-Examples

JSON: http://results.elections.virginia.gov/vaelections/2015%20November%20General/Json/Member%20Senate%20of%20Virginia%20%28017%29.json


Plugin-Display:

2015 November General NumberOfSeats: 1

  • ALBEMARLE COUNTY
    Ned L. Gallaway, Votes: 0, Percentage: 0.00%, Party: Democratic
    Bryce E. Reeves, Votes: 0, Percentage: 0.00%, Party: Republican
    Write In, Votes: 0, Percentage: 0.00%, Party: Write-In
  • CULPEPER COUNTY
    Ned L. Gallaway, Votes: 0, Percentage: 0.00%, Party: Democratic
    Bryce E. Reeves, Votes: 0, Percentage: 0.00%, Party: Republican
    Write In, Votes: 0, Percentage: 0.00%, Party: Write-In

 


What template is used? Try this:

<b>{ElectionName}</b> NumberOfSeats: {NumberOfSeats}<br>
<ul>{subloop-array:Localities:2}
<li>
{subloop:Localities.Locality:2}{Localities.Locality.LocalityName}<br>{/subloop:Localities.Locality}
{subloop-array:Localities.Candidates:-1}{Localities.Candidates.BallotName}, Votes: {Localities.Candidates.Votes}, Percentage: {Localities.Candidates.Percentage}, Party: {Localities.Candidates.PoliticalParty}<br>{/subloop-array:Localities.Candidates}
</li>
{/subloop-array:Localities}</ul>