Render multiple forms

I have json file with multiple json object content , in order to transform this data into embedded html forms i have used this logic:

$url = ‘C:/Users/user/Desktop/service1/camunda-test/src/main/webapp/forms/data.json’; // path to your JSON file
$data = file_get_contents($url); // put the contents of the file into a variable
vat jsonData=JSON.parse($data);
for(var i=0;i<bject.keys(jsonData).length;i++){
var dat1=jsonData[i];
var document = $scope.document = dat1;
camForm.on(‘form-loaded’, function() {
camForm.variableManager.fetchVariable(‘document’);
});

}
</script>

But it throws similar exception: ** Form failure: Unexpected identifier** how shoudl i filx this error?
and i want to generate as many forms as many json objects i have in my data.json file,
how should i make this?
1.Can i add one more button like complete button on whcih i can make this logic ( on clikc it hsould make all my tasks complete) how should i implement this logic?