If you've run az configure to get non-json default output then you don't get JSON. As a result the JSON.parse immediately fails due to trying to parse the non-json format. This enforces retrieving in JSON format so that we can always parse it whatever the users default value
If you've run
az configure
to get non-json default output then you don't get JSON. As a result theJSON.parse
immediately fails due to trying to parse the non-json format. This enforces retrieving in JSON format so that we can always parse it whatever the users default value