jsonencode-no-replacements

Invicton-Labs/jsonencode-no-replacements/null

Terraform Module HCL NULL

A module to do a jsonencode without escaping special characters

Install
module "jsonencode-no-replacements" {
source = "Invicton-Labs/jsonencode-no-replacements/null"
version = "0.1.1"
}
plain text: /constructs/tfmod-invicton-labs-jsonencode-no-replacements-null/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-null-jsonencode-no-replacements A module to do a jsonencode without replacing special characters. Per the jsonencode documentation, > When encoding strings, this function escapes some characters using Unicode escape sequences: replacing , &, U+2028, and U+2029 with \u003c, \u003e, \u0026, \u2028, and \u2029. This is to preserve compatibility with Terraform 0.11 behavior. Since in most cases we no longer need Terraform 0.11 compatibility and this escaping can cause problems, this module does a standard jsonencode but does not escape these characters. Note: Since there's no way to know prior to using jsonencode whether the original object contains any literal strings that match the unicode representations that Terraform replaces values with, they cannot be "protected" from the un-r

Inputs (1)
NameTypeDescriptionDefault
objectanyThe object to encode into JSON. required
Outputs (1)
encoded — The JSON-encoded string.
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.1
Cloud NULL
Total downloads5.9k
Inputs1
Outputs1
NamespaceInvicton-Labs
Updated