formic icon indicating copy to clipboard operation
formic copied to clipboard

HTML JSON form submission - Infer types using the type attribute

Open phistuck opened this issue 11 years ago • 1 comments

<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.

phistuck avatar May 30 '14 09:05 phistuck

I did want to suggest that myself. Therefore I express my support on this.

cimnine avatar Jan 03 '15 23:01 cimnine