jsonencode-no-replacements
Invicton-Labs/jsonencode-no-replacements/null
A module to do a jsonencode without escaping special characters
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
| Name | Type | Description | Default |
|---|---|---|---|
| object | any | The object to encode into JSON. | required |
encoded — The JSON-encoded string.