Skip to content

feat: add support to json marshal the module output#143

Merged
Emyrk merged 1 commit into
mainfrom
stevenmasley/json
Jun 2, 2025
Merged

feat: add support to json marshal the module output#143
Emyrk merged 1 commit into
mainfrom
stevenmasley/json

Conversation

@Emyrk
Copy link
Copy Markdown
Member

@Emyrk Emyrk commented Jun 2, 2025

No description provided.

@Emyrk Emyrk requested a review from brettkolodny June 2, 2025 14:43
Comment thread preview.go
Files map[string]*hcl.File
// They can be marshalled, but not unmarshalled. This is a limitation
// of the HCL library.
Files map[string]*hcl.File `json:"-"`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is setting the key to "-" prevent it from being unmarshalled?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes exactly 👍

@Emyrk Emyrk merged commit 131ed6b into main Jun 2, 2025
3 checks passed
@Emyrk Emyrk deleted the stevenmasley/json branch June 2, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants