I am looking for a way to automate a form output to json format instead of html. I am using JQuery dform http://plugins.jquery.com/project/dform to create dynamic forms.
Sample output:
{ "type" : "p", "html" : "You must login" }, { "name" : "username", "id" : "txt-username", "caption" : "Username", "type" : "text", "placeholder" : "E.g. [email protected]" }, { "name" : "password", "caption" : "Password", "type" : "password" }, { "type" : "submit", "value" : "Login" }
Please help