title: how to create a html form using a JSON definition?
body: <p>I am looking for a javascript lib which enables me to store (html) forms in JSON format, with a bit of intelligence built into validate inputs client side. Something like:</p>
  
  <pre><code>function FormController(){
    this.user = {
      name: 'John Smith',
      address:{line1: '123 Main St.', city:'Anytown', state:'AA', zip:'12345'},
      contacts:[{type:'phone', value:'1(234) 555-1212'}]
    };
    this.state = /^\w\w$/;
    this.zip = /^\d\d\d\d\d$/;
  }
  </code></pre>
  
  <p>(This is taken from <a href="http://docs.angularjs.org/#!cookbook.form">http://docs.angularjs.org/#!cookbook.form</a> ). It's almost what I want, as it offers basic client side validation with regular expressions and you can provide defaults but it appears to still need you to create the HTML form.</p>
  
  <p>I want something that only requires the definition. Any ideas?</p>