Changed the json document, adding all the parties and votes inside an array