On poll imports from IPS we decode the "choices" field from the poll table.
The importer checks the decoded data for the question entry and sets that accordingly:
$questions = json_decode($poll['choices'], true);
$question = $stepConfig['which_question'] == 'newest'...