From 9f19034fee47cd0a450e71b5ef1c095b514848e1 Mon Sep 17 00:00:00 2001 From: Alisdair McDiarmid Date: Thu, 3 Sep 2020 15:21:17 -0400 Subject: [PATCH] website: Document jsonencode entity escaping --- website/docs/configuration/functions/jsonencode.html.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/docs/configuration/functions/jsonencode.html.md b/website/docs/configuration/functions/jsonencode.html.md index 397b52c971..6f9376eabf 100644 --- a/website/docs/configuration/functions/jsonencode.html.md +++ b/website/docs/configuration/functions/jsonencode.html.md @@ -37,6 +37,11 @@ types, passing the `jsonencode` result to `jsondecode` will not produce an identical value, but the automatic type conversion rules mean that this is rarely a problem in practice. +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. + ## Examples ```