The missing bridge in web development – JSON forms
- Published at
- Updated at
- Reading time
Jim Nielsen did what he always does and shared some thoughts on the web platform. And he hit the nail on the head with "Browsers, JSON, and FormData".
So what's the current state of the web?
To drop some code while still relying on APIs, there are two options:
On point, Jim! On point. 💯
The web platform is entirely broken in that sense if you ask me. And it's funny, because Jim dug up a spec that aimed to bring JSON into HTML. 😲
<form enctype='application/json'> <input name='name' value='Bender'> <select name='hind'> <option selected>Bitable</option> <option>Kickable</option> </select> <input type='checkbox' name='shiny' checked> </form>
Unfortunately, the spec went nowhere...
But think of it: if browsers vendors could come together and put JSON support into HTML forms, and support View transitions (formerly known as Shared Element Transistions), the web could really catch up and become the platform it needs to be.
Anyways, head over to Jim's blog; it's a good one, I promise!