HTML JSON form submission spec, W3


  • Admin

    Hooray! Now we can see widespread adoption by 2018! XD

    Sarcasm aside this will be incredibly useful once some nice backwards compatible shims are created. The way NodeBB handles forms at the moment is, for lack of a better word, a workaround.



  • Nice to see the W3 community has a sense of humour :D

    EXAMPLE 6: Such Deep
    <form enctype='application/json'>
      <input name='wow[such][deep][3][much][power][!]' value='Amaze'>
    </form>
    
    // produces
    {
        "wow":  {
            "such": {
                "deep": [
                    null
                ,   null
                ,   null
                ,   {
                        "much": {
                            "power": {
                                "!":  "Amaze"
                            }
                        }
                    }
                ]
            }
        }
    }
    

Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.