Turns input into JSON, when possible. If input cannot be turned into JSON object, the filter just returns the input again.
Can be used to translate hardcoded texts in your theme, using locale files. It expects you to put a .yml (YAML) file for each language of your site in the locales folder. So if your site supports Dutch and English, you should have the following files: