Skip to content

HTML JSON form submission - Infer types using the type attribute #22

@phistuck

Description

@phistuck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions