vSphere ISO build using JSON

I want to create a VM by passing all the parameters in JSON, but stock with following error.

./packer build -on-error=ask packer_iso_1_2.json
vsphere-iso: output will be in this color.

==> vsphere-iso: no default datacenter found
==> vsphere-iso: Step “StepConnect” failed

You should follow the error message and provide a datacenter in your configuration file.