website: Document jsonencode entity escaping

This commit is contained in:
Alisdair McDiarmid 2020-09-03 15:21:17 -04:00
parent c7568ccceb
commit 9f19034fee
1 changed files with 5 additions and 0 deletions

View File

@ -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
```