HTML JSON form submission - Infer types using the type attribute
Opened this issue · 1 comments
phistuck commented
<input value="5" type="number" name="foo"/>
would yield a number. Example -
{
"foo": 5
}
Same for type="range" and so on.
type="checkbox" could yield a boolean (instead of 'on').
type="date" and friends can yield ISO formatted dates/timestamps.
cimnine commented
I did want to suggest that myself. Therefore I express my support on this.