JSFiddle - React, Tailwind, and code Playground
by marek8623
HTML
<form>
<input type="text" name="id"/>
<input type="text" name="name"/>
<input type="text" name="description"/>
</form>
JavaScript
var json={
"id" : 12,
"name": "Jack",
"description": "Description"
};
for(key in json)
{
alert(key);
if(json.hasOwnProperty(key))
$('input[name='+key+']').val(json[key]);
}