public Election::addCandidatesFromJson
Description
php
public Election->addCandidatesFromJson ( string $input ): arrayImport candidates from a JSON source.
Parameter
input: string
JSON string.
Return value
(array) List of newly registered candidate objects.
Throws:
CandidateExistsException
