command/format: JSON value formatting heuristic not for primitive values
command/format: JSON value formatting heuristic not for primitive values

Since our own syntax for primitive values is similar to that of JSON, and
since we permit automatic conversions from number and bool to string, we
must do this special JSON value diff formatting only if the value is a
JSON array or object to avoid confusing results.

hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk