json2hcl icon indicating copy to clipboard operation
json2hcl copied to clipboard

Convert JSON to HCL, and vice versa. We don't use json2hcl anymore ourselves, so we can't invest time into it. However, we're still welcoming PRs.

Results 12 json2hcl issues
Sort by recently updated
recently updated
newest added

I needed the tool on windows so here is the makefile to build for linux mac and windows

Please merge this branch to support hclv2.

I am a heavy user of this tool for many of my Terraform tools and modules. Thank you for making it! Terraform 0.12 is there and it is time to...

I ran into an issue converting a list of lists. I was converting [terraform-aws-vpn-gateway complete-dual-vpn-gateway example](https://github.com/terraform-aws-modules/terraform-aws-vpn-gateway/blob/0b73ee997145080468f2f3d60ee846739f71f87e/examples/complete-dual-vpn-gateway/main.tf#L58) to `json` and ran into the message `unable to parse HCL: At 58:74: expected:...

I'm using `-reverse` to convert an HCL file, specifically configuration for the HashiCorp Vault Secure Introduction client (a proprietary, Enterprise-only Vault add-on); [HCL example here](https://vagrantcloud.com/help/vault/vsi/configuration) to JSON. The input is:...

Hi, I want to convert some `json` into **terraform** readable format. However, we I use : ~~~sh curl -sSl https://raw.githubusercontent.com/kvz/json2hcl/master/fixtures/infra.tf.json | json2hcl ~~~ The output seems not to be readable...

When using functions where arguments are wrapped in double quotes, so there are both outer double quotes around the variable syntax and inner double quotes around the values, json2hcl handles...

i cannot convert a tf to json and back again .. ( json2hcl -reverse < a.tf | json2hcl > b.tf ) a.tf ; "terraform" = { "backend" "local" { "key"...

JSON input that starts with a root array is unparsable. For example, start with input such as the JSON sample from [here](https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html) (the content of `task-definitions/service.json`). You get the following...

I tried reverse on the tf file in the fixtures, but it gets stuck without any output.