Skip to main content

parse_options

Function parse_options 

Source
pub fn parse_options(val: &Value) -> Vec<QuestionOption>
Expand description

Parses options from either an array of objects [{"label": "...", "description": "..."}] or an array of strings ["Option A", "Option B"].