Understand the purpose of terraform-json
mainThe terraform-json library provides Go data types designed to parse the JSON output produced by specific Terraform commands. It serves as both a parsing library and a de facto documentation reference for the Terraform JSON formats.
It is primarily intended for decoding the following command outputs:
terraform show -jsonterraform providers schema -json
Use this library when you need to decode core stable data types for inspection or analysis, but do not intend to emit JSON that must strictly match Terraform's internal semantic format.