| Operator Type: | Function |
| Operator Scope of Action: | Data manipulation |
| Operator Purpose: | Formatting |
String.json()
This operator (added in v5.7.0) returns a JSON-encoded UTF-8 version of a string attribute's value. The apostrophe (straight single quote), straight double quote, solidus (forward slash) and backslash characters are all escaped by a preceding backslash character.
See also jsonEncode().
