website: Document jsonencode entity escaping

pull/26231/head
Alisdair McDiarmid 6 years ago committed by Pam Selle
parent 69b3bb50cd
commit 87393699fd

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

Loading…
Cancel
Save