toJSON & fromJSON not working as advertised
Opened this issue · 4 comments
I'm trying to bind the form to a json-object that is retrieved from a database, but it gives me errors.
So I tried to use the toJSON function to get an object that would have the correct format, to feed it back into the fromJSON function, but the toJSON function doesn't give me a JSON object as advertised in the documentation, but the html-code of the form.
Am I reading docs wrong? How can I bind data from a database to the form and the other way around?
Keep up the good work.
Way.prototype.toJSON() is broken for me too. It either returns a String (instead of an object key/value pair) containing the value of the element if it is a textarea, input, or select, or a String containing the value of the HTML of the element otherwise.
I'll take a crack at fixing this method.
I have this problem too. it returns a String containing the whole value of the html of the form element.
+1 - Assumed I was reading the docs wrong. Would like to set / get form data via JSON but that doesn't seem to be working :-(
is this project dead? this bug still happens :\