I want to create a form using JSON and also need to validate the rules defined in JSON. Below is how my JSON looks:\[code\]{ "modules":[ { "type":"form", "action":"submit.aspx", "name":"registrationform", "container":"#maincontent", "fields":[ { "id":"firstname", "label":"First Name", "name":"fname", "type":"text", "value":"" }, { "id":"email", "label":"Email", "name":"email", "type":"text", "value":"" } ], "rules": { "fname" : "required", "email" : { "required": "true", "email": "true" } }, "messages": { "fname" : "Enter your firstname", "email" : { "required": "Please enter a valid email address", "minlength": "Please enter a valid email address" } } } ]}\[/code\]How can I write dynamic code that would validate my form elements using the JSON rules and display error messages (as defined in JSON) ?Is there some jQuery method that I can use directly?