Ensure json file is initialised

If a blank json file is passed into create-nodes then it needs to be
initialised in order to ensure jq can use it.

Change-Id: Iadfd6c6e2bcfba3ad791228d981b33ddee2b6cac
Merge "Ensure json file is initialised"