Nomad job plan CLI - Flexible input and output formats

nomad job plan command supports jobspec in both HCL and JSON. However, only when the jobspec is sent in as JSON can we expect a JSON response.

I would like the combination where the jobspec is provided in HCL format but the plan output be responded in JSON format.

This is particularly useful whee jobspec is generated by a templating engine, and therefore HCL is desirable. However, output requires parsing for a better presentation on what changes to expect. In this case, parsing a structured format like JSON programmatically is more resilient as opposed to parsing the current “human readable” output generated from HCL input.