Skip to content

Returning list instead of object in latest master #21

@dwilliams782

Description

@dwilliams782

Hi,

The output of our file with hcl2json being built from master is the following:

{
  "locals": [
    {
      "example": []
    }
  ]
}

but 0.3.1 produces:

{
    "locals": {
        "example": [],
      }
  ]
}

This is with the same input:

locals {
  example = [
    module.example,
    module.example2,
  ]
}

We would expect locals to be an object per 0.3.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions