[jQuery] Initializing form variables from JSON

[jQuery] Initializing form variables from JSON

Hi
if I have a form already loaded in the browser e.g.
<form>
<input type="text" name="inp1"><br clear="all"><input type="text" name="inp2"><br clear="all">
</form>
I want to be able to load the values of the form inputs by AJAX. So I can get the values as a JSON object. That's fine. But how do I now set all the values inside the form?
In the form plugin (form.js) in  the svn version, there is a serialize() or formdata() function. But can we do a reverse? From the in-memory hash/array, can we set back the variables into the form?
Please help.
Regards
Ashutosh
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/