It can only load json with the api, the nomad CLI can't launch json jobs.
"For machine-friendliness, Nomad can also read JSON-equivalent configurations. In general, we recommend using the HCL syntax."
https://www.nomadproject.io/docs/job-specification#job-speci...