Skip to main content

form_to_json

Function form_to_json 

Source
pub fn form_to_json(form: HashMap<String, String>) -> Value
Expand description

Turn a submitted HTML form (all string values) into a typed JSON object: "true"/"false" → bool, integer/float text → number, everything else stays a string.