Populates form elements from a JSON object.